Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

conda error ssl certificate : HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443

no matter what I do I get this error

C:\Users\MyPc>conda update --all
Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/free/win-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/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))

I have searched all the internet , re-installed anaconda and did whatever is there on suggestion but this issue is still there. Windows 10 C:\Users\MyPc>anaconda --version anaconda Command line client (version 1.7.2) C:\Users\MyPc>conda --version conda 4.5.12

like image 993
Obsidian Avatar asked Mar 20 '26 02:03

Obsidian


2 Answers

In my case I got this kind of error message when I try to run this command

conda install tensorflow

here is the Error message

CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to download and install packages. Exception: HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

This is the solution for that

step 01

go to your installation path of anaconda3

installation path of anaconda3

step 02

now go to the this file path

anaconda3\Library\bin

step 03

now select this DLL file and copy that

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

step 04

after that go to this file path and paste that to inside of that folder

anaconda3\DLLs
like image 166
Dhamith Kumara Avatar answered Mar 21 '26 18:03

Dhamith Kumara


This command worked for me:

conda config --set ssl_verify false 
like image 39
pedro_bb7 Avatar answered Mar 21 '26 18:03

pedro_bb7



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!