Python Forum
PIP Installation Error - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: PIP Installation Error (/thread-25900.html)



PIP Installation Error - bhanukiran117 - Apr-15-2020

I am trying to install pip under non root user and I am getting the following error.

python --version
Python 2.7.11

cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.10 (Santiago)

wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py -O - | python - --user
--2020-04-15 07:45:48-- https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io... 199.232.36.175, 2a04:4e42:46::175
Connecting to bootstrap.pypa.io|199.232.36.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1807342 (1.7M) [text/x-python]
Saving to: “STDOUT”

100%[=========================================================================================================================================================================>] 1,807,342 2.05M/s in 0.8s

2020-04-15 07:45:49 (2.05 MB/s) - written to stdout [1807342/1807342]

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
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
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
ERROR: No matching distribution found for pip


RE: PIP Installation Error - bhanukiran117 - Apr-15-2020

modified the below lines in the Setup.dist file.

Modules/Setup.dist


SSL=/usr/include/openssl
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto


RE: PIP Installation Error - Larz60+ - Apr-15-2020

python 2.7 is obsolete, and no longer supported
you should upgrade.
Current version is python is 3.8