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 build-essential libffi-dev 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.

Answer from arshovon on Stack Overflow
🌐
Python
docs.python.org › 3 › library › ssl.html
ssl — TLS/SSL wrapper for socket objects — Python 3.14.4 ...
Source code: Lib/ssl.py This module provides access to Transport Layer Security (often known as “Secure Sockets Layer”) encryption and peer authentication facilities for network sockets, both clien...
Discussions

My python does not have ssl module. What should I do?

This should help: https://stackoverflow.com/a/44758621

You were missing essential libraries when you installed Python 3.

More on reddit.com
🌐 r/learnpython
7
2
June 15, 2018
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.#93 More on github.com
🌐 github.com
50
May 15, 2020
Installing SSL package with PIP requires SSL package to be already installed
I tried all the advices in internet, ... of Python or not for CentOS 7. The error I'm getting when running the application software: ... # pip install --trusted-host pypi.org ssl WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python ... More on github.com
🌐 github.com
4
August 19, 2022
Can't install any package via `pip` on windows 10, ssl module in Python is not available
PS E:\Python\Virtualenv\Scripts> .\activate (Virtualenv) PS E:\Python\Virtualenv\Scripts> pip install numpy pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting numpy Could not fetch URL https://pypi.python.org/simple/numpy/: There ... More on github.com
🌐 github.com
54
February 28, 2018
🌐
PyPI
pypi.org › project › ssl
ssl · PyPI
April 20, 2013 - The old socket.ssl() support for TLS over sockets is being superseded in Python 2.6 by a new ‘ssl’ module.
      » pip install ssl
    
Published   Apr 20, 2013
Version   1.16
🌐
W3Schools
w3schools.com › python › ref_module_ssl.asp
Python ssl Module
The ssl module provides TLS/SSL wrapper functionality for socket objects to create secure network connections.
🌐
Codiga
codiga.io › blog › python-ssl-versions
SSL module in Python: stay secure!
October 17, 2022 - The Python ssl module provides functions and classes to use Secure Sockets Layer (SSL) and Transport Layer Security (TLS) to secure communication both server and client side.
🌐
Pythontic
pythontic.com › ssl › ssl-module › introduction
Introduction to the Python SSL Module | Pythontic.com
The SSL module in Python is a set of classes, functions and constants that provide cryptographic and authentication services for stream based network sockets.
Find elsewhere
🌐
GitHub
github.com › python › cpython › blob › main › Lib › ssl.py
cpython/Lib/ssl.py at main · python/cpython
# Wrapper module for _ssl, providing some additional facilities · # implemented in Python.
Author   python
🌐
GitHub
github.com › python › cpython › blob › main › Modules › _ssl.c
cpython/Modules/_ssl.c at main · python/cpython
#include "Python.h" #include "pycore_fileutils.h" // _PyIsSelectable_fd() #include "pycore_long.h" // _PyLong_UnsignedLongLong_Converter() #include "pycore_pyerrors.h" // _PyErr_ChainExceptions1() #include "pycore_time.h" // _PyDeadline_Init() · /* Include symbols from _socket module */ #include "socketmodule.h" · #ifdef MS_WINDOWS · # include <wincrypt.h> #endif · · #include "_ssl.h" ·
Author   python
🌐
MicroPython
docs.micropython.org › en › latest › library › ssl.html
ssl – SSL/TLS module — MicroPython latest documentation
ssl.CERT_REQUIRED requires the device’s date/time to be properly set, e.g. using mpremote rtc --set or ntptime, and server_hostname must be specified when on the client side. ... This exception does NOT exist. Instead its base class, OSError, is used. ... This is a MicroPython extension. On most ports, this module supports DTLS in client and server mode via the PROTOCOL_DTLS_CLIENT and PROTOCOL_DTLS_SERVER constants that can be used as the protocol argument of SSLContext.
🌐
GitHub
github.com › actions › setup-python › issues › 93
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. · Issue #93 · actions/setup-python
May 15, 2020 - pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.#93
Published   May 15, 2020
Author   utapyngo
🌐
GitHub
github.com › pypa › pip › issues › 11391
Installing SSL package with PIP requires SSL package to be already installed · Issue #11391 · pypa/pip
August 19, 2022 - yum update yum install openssl-devel bzip2-devel libffi-devel reboot yum groupinstall "Development Tools" wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0a4.tgz tar -xzf Python-3.11.0a4.tgz cd Python-3.11.0a4 ./configure --enable-optimizations make altinstall pip3 install ssl · WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Author   pboettcher
🌐
Readthedocs
python-security.readthedocs.io › ssl.html
Python SSL and TLS security — Python Security 0.0 documentation
New in Python 3.5. ssl.enum_crls(store_name): new in Python 3.4, specific to Windows
🌐
Snyk
snyk.io › blog › implementing-tls-ssl-python
Implementing TLS/SSL in Python | Snyk
October 16, 2022 - The SSL library supports Windows, macOS, and other modern UNIX systems. It also requires OpenSSL to work. Toward the end of this article, we’ll use the Python SSL library to wrap our connection-based socket with the SSL certificate we generate in the following section.
🌐
GitHub
github.com › pypa › virtualenv › issues › 1139
Can't install any package via `pip` on windows 10, ssl module in Python is not available · Issue #1139 · pypa/virtualenv
February 28, 2018 - PS E:\Python\Virtualenv\Scripts> .\activate (Virtualenv) PS E:\Python\Virtualenv\Scripts> pip install numpy pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting numpy Could not fetch URL https://pypi.python.org/simple/numpy/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available.
Author   liurui39660
🌐
Python
wiki.python.org › moin › SSL
SSL - Python Wiki
ssl module (internal for Python 2.6+, external for Python 2.5 - http://pypi.python.org/pypi/ssl).
🌐
PyPI
pypi.org › project › pyOpenSSL
pyOpenSSL · PyPI
Software Development :: Libraries :: Python Modules · System :: Networking · Report project as malware · Note: The Python Cryptographic Authority strongly suggests the use of pyca/cryptography where possible. If you are using pyOpenSSL for anything other than making a TLS connection you should move to cryptography and drop your pyOpenSSL dependency. High-level wrapper around a subset of the OpenSSL library. Includes · SSL.Connection objects, wrapping the methods of Python’s portable sockets ·
      » pip install pyOpenSSL
    
Published   Mar 15, 2026
Version   26.0.0
🌐
Python Forum
python-forum.io › thread-42375.html
Python ssl module
If I open Idle, I can import the module ssl no problem But Quote:pip list in bash shows no module ssl Why does ssl not show up in the list, but can be imported without an error message? After importing ssl in Idle, this command print(ssl.__ve...
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-install-and-use-ssl-certificate-in-python
How to Install and use SSL Certificate In Python - GeeksforGeeks
July 23, 2025 - HTTPS: It is a combination of the HTTP with the Secure Socket Layer (SSL)/Transport Layer Security (TLS) protocol. TLS: It is an authentication and security protocol widely implemented in browsers and Web servers.