Anaconda如何设置网络代理

参考:https://blog.csdn.net/qinweixp/article/details/79964110
修改anaconda的配置文件,位置在path-for-install目录下.condarc文件,添加代理
1、如果公司代理不使用用户名密码
proxy_servers:
http: http://xxxx:8080
2、代理需要用户名
proxy_servers:
http: http://user:password@xxxx:8080
https: https://user:password@xxxx:8080
3、使用conda安装时代理设置
window下可以在cmd中设置环境变量http_proxy、https_proxy
操作方法:set http_proxy=http: http://user:password@xxxx:8080
set https_proxy=http: https://user:password@xxxx:8080
注意:如果密码中含有特殊字符@,则需要转义,变为%40,例如:set http_proxy=https://username:pass%40word@hhhhh.com:1080

posted @ 2019-06-05 16:02  21summer  阅读(8549)  评论(0编辑  收藏  举报