anconda产生proxyError解决方法

错误:window系统运行python出现:WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)),或proxyError...
解决方法:

  1. 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

  1. 开机打开proxy代理软件(比如shadowsocks\),然后在cmd输入proxy打开电脑代理软件, 开启手动设置代理,如下所示,最后运行程序即可。

参考网址:

https://www.cnblogs.com/treasury-manager/p/13952394.html

https://www.cnblogs.com/ytikewk/p/16471636.html

https://blog.csdn.net/m0_59118857/article/details/132119672?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-8-132119672-blog-133022859.235^v43^pc_blog_bottom_relevance_base3&spm=1001.2101.3001.4242.5&utm_relevant_index=11

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值