I’m experiencing an issue with Anaconda when trying to create a new conda environment. I’ve recently installed Anaconda, and I’m running into SSL certificate verification problems that prevent me from creating environments or downloading packages.
Here’s the error message I’m encountering:
CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.
Exception: HTTPSConnectionPool(host=‘repo.anaconda.com’, port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)’)))
I have tried to address this issue by downloading a certifi.pem file and pointing Anaconda to it, but the problem persists.
I’m using Anaconda on a Windows system, and I would appreciate any guidance or suggestions on how to resolve this SSL certificate verification error so that I can create and manage conda environments without issues.
I am running into the same issue. I am new to the software, and have recently installed, and working through the tutorials.
Here is what prompted the error:
(example) C:\Users<myuseraccount>>conda install jupyterlab dask pandas hvplot
Collecting package metadata (current_repodata.json): failed
CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.
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.”))
Where “” refers to my username on my computer
I attempted: conda config --set ssl_verify false
but get the same error message. Where does one find if an agency proxy is the issue?
Hi! I ran into the same issue trying to do some development work on my company laptop. The company uses Zascaler and apparently its modifying the SSL certificate. The easiest solution for me was to download the certificate and tell anaconda where to find it in the preferences menu. It seems every web browser is slightly different but the principle is the same to download the cert you click on this icon in the browser (next you where you enter in URLS):
Then there will be an option related to security . For chrome under the current version of the browser it just says “connection is secure” but if you click on it then another mini menu will pop up at the bottom of that little menu is an selection that says “Certificate is valid” from there you will get a popup menu, navigate to the tab “Details”, and select “Export” in the bottom right of the menu (NOTE: some stack overflow posts mentioned to highlight the “root” one before exporting but im not totally sure you need to). You export it will save the file as a .crt file typically. Save a copy of this file if you are planning on doing some development work as I also needed it in a .pem file (you can just save it as a .pem extension if you do), to make API calls.
From there you can open up anaconda go to “File → Preferences” or hit “ctl + P” in there is an option to specify the path to an SSL certificate, copy the full file path to the certificate you saved from your browser and then you should be able to make an anaconda environment.