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

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

  • 19
    点赞
  • 33
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8097) 是一个网络连接错误的异常。它表示在与特定的主机和端口建立连接时出现问题。具体错误信息是"Max retries exceeded with url: /env/main (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000019B93886588>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))"。这个错误通常是因为无法连接到目标主机所导致的。可能的原因包括目标主机处于离线状态,网络连接不稳定,或目标主机主动拒绝了连接请求。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [requests.exceptions.ConnectionError:HTTPSConnectionPool(host](https://blog.csdn.net/a6864657/article/details/94381948)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [visdom安装启动/requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘localhost‘, port=...](https://blog.csdn.net/qq_42514371/article/details/127838311)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值