Anaconda和pip在windows环境下的配置代理

1. Anaconda的配置

  • C:\Users\xxxx\\.condarc内容改为:
auto_activate_base: false
ssl_verify: true
channels:
  - defaults
show_channel_urls: true
proxy_servers:
  http: http://host:port
  https: http://host:port

2. Pip的配置

  • C:\ProgramData\pip\pip.ini内容改为:
[global]
proxy = http://host:port
  • 然后在终端里运行:
    pip -v config list

你可能感兴趣的:(其它,conda,python,pip)