Skip to main content
When using Anaconda’s repositories behind a company proxy, you might encounter an HTTP and SSL error like the one below due to custom security profiles managed by your IT department.
There are three potential ways to resolve this error. Start by updating the .condarc file before trying the other methods.

Updating the .condarc file

Anaconda recommends updating your .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:
You can see if your proxy is set by running conda config --show proxy_servers.

Updating environment variables

You can also resolve an HTTP and SSL error by updating the system environment variables. This can affect all CLI software across the whole system.
To change environment variables on Windows:
  1. In the Start menu, search for “env”.
  2. Select “Edit Environment Variables for your account”.
  3. Select “Environment Variables…”.
  4. Press “New…”.
  5. Add two variables http_proxy and https_proxy both with the same value: http://proxy-XX:XXX

Using .netrc authentication

A .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.