报错1:ConnectionRefusedError: [Errno 111] Connection refused
我出现这个问题应该是代理问题。ip
pip list查看是否已安装visdom
没安装的话,输入:
pip install visdom -i https://pypi.tuna.tsinghua.edu.cn/simple/
但是清华源不行,出现报错:
报错2:Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/visdom/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/visdom/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
换阿里云的源:
pip install visdom -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
就不出现拒绝连接的报错了。
仅个人纪录。