Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Python by (200 points)

When I try to execute

pip3 install <package>

I'm getting some error which is related to ssl

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

Collecting <package> 

   Could not fetch URL https://pypi.python.org/simple/<package>/: 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 <package> (from versions: ) 

No matching distribution found for <package>

How can I fix this problem ?

1 Answer

0 votes
by (26.4k points)

First step:-

You have to install the necessary packages for python and SSL

$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Second step;-

Next, Download and Unzip the "Python-3.6.8.tar.xz" from the link

Make sure you unzip the downloaded file in your home directory

Third step:-

Open the terminal and run "$ ./configure", in  that respective directory

Fourth step:-

Then, Build & install 

$ make && sudo make install

Last step:-

Here, you can install your packages with:-

$ pip3 install package_name

Note:- These commands are not executed and tested in ubuntu 20.04 LTS

Want to be a Python expert? Come and join this Python for Data Science.

To know more about these topics, you can also look at the following video tutorial :

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...