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...
🌐
PyPI
pypi.org › project › ssl
ssl · PyPI
April 20, 2013 - SSL wrapper for socket objects (2.3, 2.4, 2.5 compatible)
      » 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.
🌐
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
🌐
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
🌐
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.
🌐
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
🌐
GitHub
github.com › python › cpython › blob › main › Modules › _ssl.c
cpython/Modules/_ssl.c at main · python/cpython
#include "Python.h" #include ... #include "pycore_time.h" // _PyDeadline_Init() · /* Include symbols from _socket module */ #include "socketmodule.h" · #ifdef MS_WINDOWS · # include <wincrypt.h> #endif · ...
Author   python
🌐
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).
🌐
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.
🌐
LWN.net
lwn.net › Articles › 688974
The future of the Python ssl module [LWN.net]
June 2, 2016 - The ssl module provides SSL/TLS support, Benfield explained. It uses OpenSSL internally and is important so that pip can safely download packages from the Python Package Index (PyPI) for one thing. There are alternatives to ssl, including pyOpenSSL, various wrappers of non-OpenSSL TLS ...
🌐
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
🌐
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.
🌐
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