python 3.6 on ubuntu

How To Install Python 3.6 On Ubuntu 17.04

Insight: Install Python 3.6 on Ubuntu 16.04/Ubuntu 16.10/ 17.04

Python is one of the mostly used high-level programming language. It was created by Guido van Rossum. First version of python was released in 1991. Latest stable version of Python is 3.6 which was released on December 23rd, 2016. Ubuntu 16.04 and Ubuntu 16.10 comes loaded with Python 2.7 and Python 3.5.

install python 3.6 on ubuntu

Here, we will show you to install Python 3.6 on Ubuntu 16.04, Ubuntu 16.10 and Ubuntu 17.04.

How to Install Python 3.6 on Ubuntu 16.10, Ubuntu 17.04 from Repository

Use following command to install it from repository.

sudo apt update

sudo apt install python3.6

Check your installed version with this  command:

python3.6 -V

How to install latest version of Python on Ubuntu 16.04.

Install Python 3.6 on Ubuntu 16.04 from PPA

sudo add-apt-repository ppa:jonathonf/python-3.6

sudo apt update

sudo apt install python3.6

Or we can install it from source too.

Alternative Method: Compile and Install Python 3.6 on Ubuntu 16.04

First you need to install some build dependencies.

sudo apt install build-essential checkinstall

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

Now download source code from


After downloading the source code, extract the tarball.

tar xvf Python-3.6.0.tar.xz

Now jump into the source directory with cd command, configure and install.

Note: make altinstall won’t create symlink which means that  /usr/bin/python still points to the old version of Python. This command prevent your Ubuntu system from break down.

cd Python-3.6.0/


sudo make altinstall


READ THIS ALSO  Enable TCP BBR on Ubuntu And Speedup The Network

Subscribe To Our Newsletter.

Join our mailing list to receive the latest linux tutorials, tips & tricks, freebies,news and updates from our team.

You have Successfully Subscribed!