一般公司为了安全网络连接外网需要设置代理。如果不设置代理,将无法访问anaconda等python包的来源。代理设置
修改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
参考:
https://stackoverflow.com/questions/29267646/how-to-enable-proxy-servers-with-anaconda-python