IBM Support

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

Troubleshooting


Problem

When you are trying to upgrade pip in Jupyter Notebook you are getting warning message.
"pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available" 
Command used:
pip install --upgrade pip

Symptom

Error message observed when you are installing packages or upgrading pip in Jupyter Notebook.
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/
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
Requirement already up-to-date: pip in /opt/conda3/lib/python3.5/site-packages (19.3.1)
WARNING: You are using pip version 19.3.1; however, version 20.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Environment

WSL version (1.2.3.1 patch 11)
Runtime environment: Jupyter with Python 3.5, Scala 2.11, R 3.4.3, Spark 2.2.1

Resolving The Problem

The issue observed because the project is created on WSL 1.2.0. The issue is resolved by moving assets to new project that is created on WSL 1.2.3.1.

Document Location

Worldwide

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHGWL","label":"IBM Watson Studio Local"},"ARM Category":[{"code":"a8m0z000000bnp2AAA","label":"Modeling->Notebook - Jupyter"}],"ARM Case Number":"TS004092327","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.2.0"}]

Document Information

Modified date:
07 September 2020

UID

ibm16327177