conda设置代理

sudo gedit ~/.condarc

1
2
3
4
5
6
7
8
9
10
auto_activate_base: false
ssl_verify: true
channels:
- defaults
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true
proxy_servers:
http: http://127.0.0.1:19964
https: http://127.0.0.1:19964

修改proxy_servers部分即可,如果加一个http不好使,在加一个https试试
此时给conda配置了代理,但是pip代理还是不好使

使用pip install <packagename> --proxy="http://192.168.9.99:3128"即可

Error: API rate limit exceeded for 50.17.198.136. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)