14

I use Anaconda Navigator for my machine learning experiments. Recently, I have started getting this strange SSL error no matter what I try to install using conda prompt. The error is SSL error. I am posting the error message that I get

Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/free/linux-64/repodata.json.bz2 Elapsed: -

An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/free/linux-64/repodata.json.bz2 (Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')],)",),))',),)

I have an institutional proxy server; the credentials, apt.conf file etc are all OK.

Even then I am not able to install any package using conda.

Interestingly, I have installed numerous packages using conda prompt and I never faced any such error until recently. Also, I am able to follow the links (using the browser) given in the error message which means that the proxy is not blocking the site.

I was asked to use

conda config --set ssl_verify True

but even this did not help. Any help ?

I even entered the proxy server details as given in HTTP error while using conda for installation of any packages

Upendra01
  • 344
  • 3
  • 5
  • 15

5 Answers5

29

Try copying these files from Anaconda3/Library/bin to Anaconda3/DLLs :

libcrypto-1_1-x64.dll

libssl-1_1-x64.dll

ColdCold
  • 4,181
  • 2
  • 26
  • 20
4

When I had an SSL error related to conda on my work laptop behind a firewall, I had to set ssl_verify to false to get it to work.

floydn
  • 1,083
  • 7
  • 14
  • How to set it to false? – Gank Feb 24 '19 at 14:36
  • conda config --set ssl_verify False. But not work: C:\Users\gz000069>conda install -c menpo dlib Solving environment: failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a – Gank Feb 24 '19 at 14:37
4

This should do the job.

conda config --set ssl_verify False
laplace
  • 656
  • 7
  • 15
0

The following steps worked for me:

Use this command to see proxy_servers

conda config --show

This will remove saved proxy servers from anaconda configuration.

conda config --remove-key proxy_servers
conda clean --source-cache

Hope this helps you.

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
0

This is due to .dll error

go to location where you've install anaconda3>Library>bin. search and copy following dll files

libcrypto-1_1-x64.dll libssl-1_1-x64.dll

and paste to anaconda3>DLLs.

then restart your pc.

issue will get resolved.