Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 936
djordje Avatar asked Nov 11 '19 08:11

djordje


People also ask

What is the Condarc file?

condarc , is an optional runtime configuration file that allows advanced users to configure various aspects of conda, such as which channels it searches for packages, proxy settings, and environment directories.

How do I create a Condarc file?

The . condarc file is not included by default, but it is automatically created in your home directory the first time you run the conda config command. To create or modify a . condarc file, open Anaconda Prompt or a terminal and enter the conda config command.


2 Answers

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.

like image 147
Andy Perez Avatar answered Sep 19 '22 15:09

Andy Perez


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.

like image 30
Enrique Benito Casado Avatar answered Sep 21 '22 15:09

Enrique Benito Casado