I am trying to set up a proxy server in Anaconda because my firewall does not allow me to run online commands such as
conda update
I see online that I should create a .condarc file that contains the proxy address. Unfortunately,
I dont know how to create that file (is it a text file?)
and where to put it?! (in which folder? in the Anaconda folder?)
Any help appreciated
Thanks!
解决方案
It is a text (YAML) file that goes in the home directory, or optionally, the root of the anaconda installation.
The contents should look like
# Proxy settings: http://[username]:[password]@[server]:[port]
proxy_servers:
http: http://user:pass@corp.com:8080
https: https://user:pass@corp.com:8080