当前位置:   article > 正文

【笔记】requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘localhost‘, port=8097): Ma

requests.exceptions.connectionerror: httpconnectionpool(host='localhost', po

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

  1. pip安装:
  2. pip install visdom
  1. conda安装:
  2. conda install -c conda-forge visdom
  3. conda install -c conda-forge/label/gcc7 visdom
  4. conda install -c conda-forge/label/cf201901 visdom
  5. conda install -c conda-forge/label/cf202003 visdom

启动visdom

使用命令:

python -m visdom.server

观察到:

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/478733
推荐阅读
相关标签
  

闽ICP备14008679号