I have got a problem with install python on my OVH vps server kubuntu 14.04 desktop. What i need to do ?
:~/Desktop# python get-pip.py
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pip
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip
To Solve pip is configured with locations that require TLS/SSL however the ssl module in Python is not available Error Just Open Anaconda Prompt and type this command: where conda Then Press windows key and type Open Advanced System Settings. Now, Click on Environment Variables. Edit Path variable.
The error states that the SSL python module is not available; meaning you either don't have an appropriate ssl lib installed (probably not since you state the system python can pip install fine), or the python you built from source or otherwise installed doesn't include the ssl module.
This module provides access to Transport Layer Security (often known as “Secure Sockets Layer”) encryption and peer authentication facilities for network sockets, both client-side and server-side. This module uses the OpenSSL library.
Calling more attention to @Arduino_Sentinel 's comment
Sounds like you installed Python by running make, right ? In that case I'd recommend installing libssl-dev and rebuilding+reinstalling Python
On a fresh debian installation, I had installed Python 3.6 via
wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
tar xvf Python-3.6.3.tgz
cd Python-3.6.3
./configure
make
make altinstall
creating a virtualenv with virtualenv -p python3.6 env
and subsequently trying to install anything with env/bin/pip
would produce the errors from the question.
The comment quoted above solved the issue on my server.
The main problem is you compiling python before install the libssl.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With