Conda设置代理

3,086 阅读1分钟

conda配置代理并不是那么常见,通常公司要求通过代理联网以保证网络安全。所以这个时候,用conda配置代理就有必要了

一次性

conda config --set proxy_servers.http http://id:pw@address:port

永久

创建配置文件

vim ~/.condarc

添加或修改为以下内容

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - defaults
show_channel_urls: true
 
proxy_servers:
  http: http://127.0.0.1:8001
  https: https://127.0.0.1:8001
ssl_verify: false