visdom安装及启动/问题:requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘localhost‘, port=8097)

在训练神经网络时有时需要开启visdom,否则遇到如下提示:

requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000
19B93886588>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))

安装visdom
pip安装:

pip install visdom

conda安装

# 任选其一即可
conda install -c conda-forge visdom
conda install -c conda-forge/label/gcc7 visdom
conda install -c conda-forge/label/cf201901 visdom
conda install -c conda-forge/label/cf202003 visdom

启动visdom
使用命令:

python -m visdom.server

观察到:

Checking for scripts.
It's Alive!
INFO:root:Application Started
You can navigate to http://localhost:8097

说明启动成功,即可访问http://localhost:8097。
 

猜你喜欢

转载自blog.csdn.net/qq_31244453/article/details/114295734