Python is a high-level interpreted programming language. The first version of Python was released in 1991. In this article we are not going to discuss what kind of language it is or how you can use it but to show you how you can install it on your Linux system.
If you are a beginner in Python programming or undergoing Python Course then you want to run some program which requires latest Python version then you are on the right page, we will show you how you can install latest Python version on your Linux(Debian/Ubuntu/Linux Mint/other distributions), currently Python reached at 3.7.x version. Making other Python version default in Linux can make Python applications and desktop components unusable which use certain version of Python. It is better not to set any Python as default in Linux (PS: You can set as default, if you know how to fix if something goes wrong). It is easy to revert back any Python version. Lets start...

Python 3.7.x

We are going to show you two ways to install Python 3.7.x, the PPA method is for Ubuntu/Linux Mint/and Ubuntu dervatives. The second method is universal that means you can install Python 3.7.x on any Linux distribution (Fedora, CentOS, RedHat, openSUSE, Manjaro, ArchLinux etc.)

Install Python 3.7.x using PPA in Ubuntu/Linux Mint

PPA is fairly simple way to install Python:

Available for Ubuntu 18.04 Bionic/16.04 Xenial/14.04 Trusty/Linux Mint 19/18/17/and other related Ubuntu derivatives
To install Python 3.7.x in Ubuntu/Linux Mint open Terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:


If you want to install Python 3.6 then use this command(Ubuntu 16.04/14.04/Linux Mint 18/17):

For Python 3.5 use this command (Ubuntu 18.04/14.04/Linux Mint 19/17):

For Python 3.4 use this command (Ubuntu 18.04/16.04/Linux Mint 19/18):

For Python 3.3 use this command (Ubuntu 18.04/16.04/14.04/Linux Mint 19/18/17):


Install Python 3.7.x using source

Using this method you can install Python 3.7.1 in any Linux distribution (Debian, Fedora, CentOS, Manjaro, ArchLinux, openSUSE, Ubuntu etc.)


That's it
Share To: