错误:window系统运行python出现:WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)),或proxyError...
解决方法:
- Anaconda代理设置
打开Anaconda prompt, 输入:conda config --set show_channel_urls yes
在路径C:\Users\用户名\下生成文件 .condarc,打开.condarc文件,修改内容如下:
channels:
- defaults
show_channel_urls: True
allow_other_channels: True
proxy_servers:
http: http://127.0.0.1:1080
https: http://127.0.0.1:1080
ssl_verify: False
其中http: http://127.0.0.1:1080参考电脑proxy配置的代理服务器设置(也可以参考自动配置代理),如果有用户名和密码,则格式为:
proxy_servers:
http: http://user:password@xxxx:8080
https: https://user:password@xxxx:8080
- 开机打开proxy代理软件(比如shadowsocks\),然后在cmd输入proxy打开电脑代理软件, 开启手动设置代理,如下所示,最后运行程序即可。
参考网址:
https://www.cnblogs.com/treasury-manager/p/13952394.html