close

[Solved] “ssl module in Python is not available” when installing package with pip3

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error “ssl module in Python is not available” when installing package with pip3 in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How “ssl module in Python is not available” when installing package with pip3 Error Occurs?

Today I get the following error “ssl module in Python is not available” when installing package with pip3 in python.

How To Solve “ssl module in Python is not available” when installing package with pip3 Error ?

  1. How To Solve “ssl module in Python is not available” when installing package with pip3 Error ?

    To Solve “ssl module in Python is not available” when installing package with pip3 Error Agree with the answer by mastaBlasta. Worked for me. I encountered the same problem as the topic description.

  2. “ssl module in Python is not available” when installing package with pip3

    To Solve “ssl module in Python is not available” when installing package with pip3 Error Agree with the answer by mastaBlasta. Worked for me. I encountered the same problem as the topic description.

Solution 1

Step by step guide to install Python 3.6 and pip3 in Ubuntu

  1. 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
  2. Download and unzip “Python-3.6.8.tar.xz” from https://www.python.org/ftp/python/ into your home directory.
  3. Open terminal in that directory and run: $ ./configure
  4. Build and install: $ make && sudo make install
  5. Install packages with: $ pip3 install package_name

Disclaimer: The above commands are not tested in Ubuntu 20.04 LTS.

Solution 2

Agree with the answer by mastaBlasta. Worked for me. I encountered the same problem as the topic description.

Environment: MacOS Sierra. And I use Homebrew.

My solution:

  1. Reinstall openssl by brew uninstall openssl; brew install openssl
  2. According to the hints given by Homebrew, do the following:echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile export LDFLAGS="-L/usr/local/opt/openssl/lib" export CPPFLAGS="-I/usr/local/opt/openssl/include"

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read