Skip to content

Instantly share code, notes, and snippets.

@arsho
Last active October 19, 2025 15:14
Show Gist options
  • Select an option

  • Save arsho/42ccba7994b7442b6dd81dd4f6e6f882 to your computer and use it in GitHub Desktop.

Select an option

Save arsho/42ccba7994b7442b6dd81dd4f6e6f882 to your computer and use it in GitHub Desktop.
Install Python 3.6.3 from source in Ubuntu 16.04 LTS

Install Python 3.6.3 from source in Ubuntu 16.04

Why Python 3.6?

Fast, reliable, and secure dependency management.

Some reasons you might want to use REST framework:

  • Improved numeric literals: six_figures = 100_000 will output 100000
  • String interpolation: Introduces Formatted String Literals.
    >>> a = 5
    >>> b = 10
    >>> f'Five plus ten is {a + b} and not {2 * (a + b)}.'
    'Five plus ten is 15 and not 30.'
    
  • Type annotations for variables: Add type annotations to functions and methods
    def my_add(a: int, b: int) -> int:
        return a + b
    

Environment

  • Operating System : Ubuntu 16.04 LTS (64-bit)

Download official release

wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz

Unpack downloaded archive

tar -xvf Python-3.6.3.tgz

Run the configure script

cd Python-3.6.3
./configure

Install

make
make install

If you get zlib not available install zlib using:

sudo apt-get install zlib1g-dev

if make or make install generates error use sudo before these.

Check version

python3.6 --version

Creation of virtual environment

python3 -m venv /path/to/new/virtual/environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment