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

在训练神经网络时有时需要开启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安装:

1、pip install visdom


conda安装:

# 任选其一即可

1、conda install -c conda-forge visdom
2、conda install -c conda-forge/label/gcc7 visdom
3、conda install -c conda-forge/label/cf201901 visdom
4、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_42514371/article/details/127838311