.condarc
file before trying the other methods.
.condarc
file to include the proxy_servers
key. This is the preferred method because it will affect only conda and not the system environment variables.
Read more about the .condarc file and using proxies.
For example:
conda info --all
.
http_proxy
and https_proxy
both with the same value: http://proxy-XX:XXX
.netrc
authentication.netrc
file is an alternate way to accomplish the same goal of setting the *_PROXY
environment variables or configuring things only for conda in the .condarc
file. The risk in this approach is that changing the environment variables here will affect the system settings as a whole.
Read more about the .netrc file.