当前位置:   article > 正文

ConnectionRefusedError: [Errno 111] Connection refused

connectionrefusederror: [errno 111] connection refused

运行代码时出现以下错误:

raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097): Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc861bd8e48>: Failed to establish a new connection: [Errno 111] Connection refused'))

 

1.检查是不是用到Visdom

 

2.检查是否运行了 python -m visdom.server

 

打开链接 http://localhost:8097


 

 

3.再打开一个命令窗口,输入自己所需的命令

比如这里,输入以下命令进行测试:

  1. import visdom
  2. vis = visdom.Visdom()

 

参考:https://github.com/facebookresearch/visdom/issues/484

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

闽ICP备14008679号