'How to solve an error that appears in conda proxy configuration?

I am trying to install Rdkit on ubuntu and I have problem with the conda configuration.

I have reinstalled anaconda3 and python3 versions on my desktop and installed it from the beginning.

When I run the command: conda create -c rdkit -n my-rdkit-env rdkit

The error I am experiencing is this one:

Collecting package metadata (current_repodata.json): failed

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.

Does anybody knows how to solve this problem, so that I can install the program called Rdkit?



Solution 1:[1]

I had a similar error on my work machine. I'm on Windows 10.

For me, the fix was to add *.anaconda.org to my list of proxy exceptions under Control Panel > Internet Options > Connections > LAN Settings > Advanced

Hope this helps.

Solution 2:[2]

Hi I had the same error.

In my case was that in environment variables from my computer I had

     HTTP_PROXY = value... 
     HTTPS_PROXY

In my case I didnt need that and I just removed them and it worked.

Solution 3:[3]

I had the same issue today on Linux 18.04. I solved it by adding my username and password when exporting the $http_proxy and $https_proxy

Here is an command structure:

$ export http_proxy=http://username:password@proxy:port
$ export https_proxy=https://username:password@proxy:port

If your password contain special character such as !@#$%, make sure to input it as Flash code. For example #->%23, @->%40. You can search it for more symbol.

Also I have removed the .condarc file from the home directory.

Hope this work for you.

Solution 4:[4]

You can use pip instead. In my case, using pip somehow fixed this error for conda.

Solution 5:[5]

unset  https_proxy
unset  http_proxy
unset  no_proxy
unset  HTTPS_PROXY
unset  HTTP_PROXY
unset  NO_PROXY

This worked for me when I proxy error

Solution 6:[6]

The reason is that Conda cannot continue due to proxy configuration errors.

The solutions are as follows: Open "Internet Options" in the Internet -> Connection -> LAN Settings -> uncheck the "Use a proxy server for Lan".

Solution 7:[7]

I faced the same error on Linux OS.

Solution- To fix the error, I have added ( *.anaconda.com ) to the list of proxy exceptions.

Solution 8:[8]

To run Conda on Linux without the error:

Collecting package metadata (current_repodata.json): done
Solving environment: done

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.

Execute the following commands to unset these agents:

unset  https_proxy
unset  http_proxy
unset  no_proxy
unset  HTTPS_PROXY
unset  HTTP_PROXY
unset  NO_PROXY

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andy Perez
Solution 2 Enrique Benito Casado
Solution 3 Sanstar
Solution 4 siddharth-ncl-work
Solution 5 Suraj Rao
Solution 6 Khan
Solution 7 Santosh
Solution 8 Ekaba Bisong