conda update CondaHTTPError: HTTP None
Midway through running Conda Update --all
, the update stalled. Multiple packages had been updated. Now, when I run conda update --all
or conda update conda
, I get this response:
(C:\Users\*****\AppData\Local\Continuum\Anaconda3) C:\Users\*****>conda update conda
Fetching package metadata ...
CondaHTTPError: HTTP None None for url <None>
Elapsed: None
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.
SSLError(SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),),)
I've repeated conda update conda
over multiple days, with no change in results. I can see there is no HTTP, however conda info --a
shows channel URLs.
(C:\Users\*****\AppData\Local\Continuum\Anaconda3) C:\Users\*****>conda info -a
Current conda install:
platform : win-64
conda version : 4.3.13
conda is private : False
conda-env version : 4.3.13
conda-build version : 2.1.5
python version : 3.5.3.final.0
requests version : 2.13.0
root environment : C:\Users\*****\AppData\Local\Continuum\Anaconda3 (writable)
default environment : C:\Users\*****\AppData\Local\Continuum\Anaconda3
envs directories : C:\Users\*****\AppData\Local\Continuum\Anaconda3\envs
C:\Users\*****\AppData\Local\conda\conda\envs
C:\Users\*****\.conda\envs
package cache : C:\Users\*****\AppData\Local\Continuum\Anaconda3\pkgs
C:\Users\*****\AppData\Local\conda\conda\pkgs
channel URLs : https://conda.anaconda.org/anaconda-fusion/win-64
https://conda.anaconda.org/anaconda-fusion/noarch
https://repo.continuum.io/pkgs/free/win-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/win-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/win-64
https://repo.continuum.io/pkgs/pro/noarch
https://repo.continuum.io/pkgs/msys2/win-64
https://repo.continuum.io/pkgs/msys2/noarch
config file : C:\Users\*****\.condarc
offline mode : False
user-agent : conda/4.3.13 requests/2.13.0 CPython/3.5.3 Windows/7 Windows/6.1.7601
How do I get conda update
to call a correct HTTP address?
Solution 1:
Use the code below in your command line :
conda config --set ssl_verify no
Solution 2:
My original answer got flagged as duplicate because I answered a similar question with the same answer, I wasn't aware that this is not allowed. I have marked my other response as a duplicate. Hopefully, this stays up!
I almost spent two days running in circles trying all the solutions I could find on the Internet, but here is what worked for me.
So, CondaHTTPError
aka SSL module is not available
error is caused by the missing/misplacement of libcrypto file in anaconda3/DLLs folder:
Tl;dr:
From
anaconda3\Library\bin
copy below files and paste them inanaconda3/DLLs
:
- libcrypto-1_1-x64.dll
- libssl-1_1-x64.dll
Detailed answer:
-
Uninstall any Python versions you have (e.g. Python 3.7 or Python 3.8)
go to Control Panel--> Program and Features--> Select Python-->
uninstall
-
Uninstall any Anaconda versions you might have (e.g. Anaconda or miniConda) For Anaconda:
go to Control Panel--> Program and Features--> Select Anaconda-->uninstall
For miniConda
go to Control Panel--> Program and Features--> Select miniconda--> uninstall
-
Delete any leftover Environment variables
go to Control Panel--> System--> Advanced System settings (on left side)--> in System Properties click on Environment Variables button--> in User Variable select Path and click the Edit button--> delete any path related to Anaconda, miniConda or Python.
E.g. C:\Users\Bob \AppData\Local\Programs\Anaconda\... C:\Users\Bob \AppData\Local\Programs\miniconda\...
b. If you don’t see any paths related to Anaconda, miniConda or Python; you are good to go.
-
Reboot your machine
-
Download the latest version of Anaconda
-
Run the Installer; keep all the default settings
-
Go to your
anaconda3/library/bin
folder:E.g.
C:\Users\Bob\AppData\Local\Continuum\anaconda3\Library\bin
-
Copy these files:
libcrypto-1_1-x64.dll
libssl-1_1-x64.dll
-
paste these in
anaconda3/DLLs
folder: -
Reopen the Anaconda Prompt and test with any command that requires an Internet connection. E.g.
conda update conda
Or withconda update --all