"pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available"
Solution 1
Here was my process to correct the error, on Windows 10 with Anaconda:
- Added the following paths to my environment variables:
- /AppData/Local/Continuum/Anaconda3
- /AppData/Local/Continuum/Anaconda3/Scripts
- /AppData/Local/Continuum/Anaconda3/Library
- /AppData/Local/Continuum/Anaconda3/Library/Bin
At this stage, the error message was still there.
- From Anaconda Prompt, I installed the latest version of pip:
python -m pip install --upgrade pip
This appeared to correct the DLL conflict.
Solution 2
I had exactly the same problem. My computer is exactly the same and the versions of Python and pip are also the same.
It's a dll conflict with libeay32.dll.
I can solve this problem by adding dir path of python which has libeay32.dll (in my case C:\Users\Gabriel\Anaconda3\pkgs\openssl-1.1.1a-he774522_0\Library\bin) in system environment as topmost position.
Solution 3
Try your install/update with pip3 instead of pip.
Solution 4
I do not have libeay32.dll in bin folder either, but after adding C:\Users\<user name>\Anaconda3\pkgs\openssl-1.1.1a-he774522_0\Library\bin
to the top of path, it is working. This is on Windows 10 64-bit.
Solution 5
Activate your base conda environment:
conda activate base
James Carter
Updated on July 24, 2021Comments
-
James Carter almost 3 years
I have the anaconda package and run Spyder. Here is my system information:
anaconda 2018.12 py37_0 Python 3.7.1 pip 18.1 Dell Inspiron 13 7000 64-bit
I am unable to install anything with pip from the command prompt. I get the following when trying to install numpy for instance (which I already have through anaconda):
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Requirement already satisfied: numpy in c:\users\uday rallabhandi\anaconda3\lib\site-packages (1.15.4) pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Please help me understand why this is happening.