I am trying to install conda packages/create environments behind a corporate firewall
On another machine, I managed to install packages from conda default channels by setting the HTTP/HTTPS proxies and ssl_verify: False
in conda config.
However, I am now getting ProxyError: Conda cannot proceed due to an error in your proxy configuration. Check for typos and other configuration errors in any '.netrc' file in your home directory, any environment variables ending in '_PROXY', and any other system-wide proxy configuration settings.
I have verified that conda is not accessing any .netrc
file through conda info
.condarc:
channels:
- defaults
# Show channel URLs when displaying what is going to be downloaded and
# in 'conda list'. The default is False.
show_channel_urls: True
allow_other_channels: True
proxy_servers:
http: http://abc.cde.local:XXXX
https: https://abc.cde.local:XXXX
ssl_verify: False
Here are the steps I have tried to resolve my issue:
- I have verified that the proxy URLs are correct and can make outgoing requests through these URLs
- I have tried to set the two settings both through
conda config --set
and.condarc
- I have tried to set the proxies through environmental variables
I cannot make changes to Windows proxy settings or do anything that requires any admin permissions.
Does anyone have any experience with this?
http_proxy
andhttps_proxy
look like, so please update your post with only those two variables (suitably masked, without hiding their format/structure) and remove the unnecessary dump of all but your http variables.conda
, but I'm not so sureconda info
will give you all details (such as whether it will use.netrc
or not). I can't spot any issues with the proxy config in your.condarc
, so I'd try removing (or comment out, rather) the proxy section from that file to see if you get the same error. If you do, you know the issue lies somewhere else, but if you don't, you know that those are the offending lines (whatever the reason).