"pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available"
Question:
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:usersuday rallabhandianaconda3libsite-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.
Answers:
Try your install/update with pip3 instead of pip.
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:UsersGabrielAnaconda3pkgsopenssl-1.1.1a-he774522_0Librarybin) in system environment as topmost position.
I do not have libeay32.dll in bin folder either, but after adding C:Users<user name>Anaconda3pkgsopenssl-1.1.1a-he774522_0Librarybin
to the top of path, it is working. This is on Windows 10 64-bit.
Activate your base conda environment:
conda activate base
Activating the base and then activated my Django environment.
(Django_env) (base) C:virtual_environmentDjango_env> , which actually worked for me.
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.
Adding “<Path to miniconda or anaconda>Librarybin” folder to PATH solved this problem for me.
I had the same issue when I created a new environment in anaconda, activated it and tried to install a library with pip. What was missing was:
conda install pip
then everything worked for me.
Add <Path to miniconda or anaconda>Librarybin
folder to PATH
or
cd <Path to miniconda or anaconda>Librarybin>
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:usersuday rallabhandianaconda3libsite-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.
Try your install/update with pip3 instead of pip.
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:UsersGabrielAnaconda3pkgsopenssl-1.1.1a-he774522_0Librarybin) in system environment as topmost position.
I do not have libeay32.dll in bin folder either, but after adding C:Users<user name>Anaconda3pkgsopenssl-1.1.1a-he774522_0Librarybin
to the top of path, it is working. This is on Windows 10 64-bit.
Activate your base conda environment:
conda activate base
Activating the base and then activated my Django environment.
(Django_env) (base) C:virtual_environmentDjango_env> , which actually worked for me.
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.
Adding “<Path to miniconda or anaconda>Librarybin” folder to PATH solved this problem for me.
I had the same issue when I created a new environment in anaconda, activated it and tried to install a library with pip. What was missing was:
conda install pip
then everything worked for me.
Add <Path to miniconda or anaconda>Librarybin
folder to PATH
or
cd <Path to miniconda or anaconda>Librarybin>