visdom installation and start/requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): M

Sometimes you need to turn on visdom when training the neural network, otherwise you will encounter the following prompt:

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',))



Install visdom
pip install:

1、pip install visdom


conda install:

# choose one

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



Start visdom
using the command:

python -m visdom.server


observed:

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



It means that the startup is successful, and you can visit http://localhost:8097.
 

Guess you like

Origin blog.csdn.net/qq_42514371/article/details/127838311