Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install require tls/ssl

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
like image 894
Piotr Avatar asked Dec 12 '16 10:12

Piotr


People also ask

How do you fix pip is configured with locations that require TLS SSL?

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.

Can't connect to https because the SSL module is not available pip?

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.

What is SSL module in Python?

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.


1 Answers

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.

like image 190
Eldamir Avatar answered Oct 07 '22 09:10

Eldamir