How to Install Python 3.6 on Ubuntu 16.04

For a lot of Linux users, sometimes installing software or packages can be somewhat overwhelming. And in the case of installing Python, it is no different. Thus, in this tutorial I will show you how you can easily install Python 3.6 on Ubuntu 16.04.

Know that Ubuntu 16.04 already comes with the versions 2.7 & 3.5 by default. However, today we will learn how to install 3.6.4, which is the latest version of Python at the time of this writing. 

Requirements

For this tutorial you will need Ubuntu 16.04 installed on your computer or a virtual machine. Just to clarify, this tutorial is not for installing the version 3.6 on other versions of Ubuntu. You can still follow this tutorial if you are running Ubuntu 14.04. 

Step 1

We will be using a third party PPA repository to install version 3.6. To add the PPA repository, open your terminal and type the following command:

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

Step 2

Now let’s run an update to make sure all of our list of packages from all the repositories are up to date. So, type the following command:

sudo apt-get update

Step 3

Type the following command for starting the installation:

sudo apt-get install python3.6

Step 4

Let’s make sure that our installation was successful by typing the following command:

python3 --version 

Conclusion

There are several ways to install Python 3.6 on Ubuntu 16.04. But, installing it via PPA is one of the simplest ways.

On a different post, I may come up with a tutorial on how to install the version 3.6 on a different version of Ubuntu. But like I said, if you are using Ubuntu 14.04 then you may also use this tutorial. 

Anyway, do let me know what you think. Don’t forget to comment below if you have any questions or concerns. 

Leave a Reply