HTTPConnectionPool(host=‘localhost‘, port=28333): Max retries exceeded with url: /events (Caused by

错误:

训练神经网络的时候报错如下:

HTTPConnectionPool(host='localhost', port=28333): Max retries exceeded with url: /events (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))

因为在神经网络中用到了Visdom,开始运行网络的时候没有下载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.
Downloading scripts, this may take a little while
It's Alive!
INFO:root:Application Started
You can navigate to http://localhost:8097

在结果里面有端口信息,所以在训练网络的时候也要注意把端口信息改了。

你可能感兴趣的:(神经网络,python,深度学习)