anaconda代理设置
启动anaconda命令行,设置代理
conda config --set proxy_servers.http http://username:password@address:port conda config --set proxy_servers.https https://username:password@address:port
或者,找到.condarc文件,一般位于用户目录下,打开后加入
proxy_servers: http: http://username:password@corp.com:8080 https: https://username:password@corp.com:8080
设置pip的代理:
pip install xxx --proxy=http://username:password@ip:port