How to download and install Python Latest Version on Linux

Python is a widely-used general-purpose, high-level programming language. This article will serve as a complete tutorial on How to download and install Python latest version on Linux Operating Systems.
On every Linux system including following OS,

  • Ubuntu
  • Linux Mint
  • Debian
  • openSUSE
  • CentOS
  • Fedora
  • and my favourite one, Arch Linux.

You will find Python already installed. You can check it using the following commands from the terminal

$ python --version

To check latest version of python 2.x.x :

$ python2 --version

To check latest version of python 3.x.x :

$ python3 --version

how-to-install-python-on-linux
Clearly it won’t be the latest version of python. There can be multiple methods to install python on a linux base system and it all depends on your linux system.
For almost every Linux system, the following commands would work definitely.



$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ sudo apt-get install python3.7

Download and install Python Latest Version on Linux

To install latest version from source code of Python follow below steps

Download Python Latest Version from python.org