Python is one of the most widely used programming and scripting languages. With the use of the Internet of Things (IoT) & Artificial Intelligence (AI) on the rise, python has become one of the most widely sought computing languages. Python is a high-level programming language used for general-purpose programming.
Python emphasizes on code readability & is very easy to pick up & learn. Moreover, there is a very active community for python & you can start from thousands of projects available for free depending on your use-case.
Recommended Read: Ultimate guide to install PYTHON from source
Also Read: Simple guide to install TOMCAT 9 on CentOS/Ubuntu
Python support for versions 2 aka python 2 has been discontinued from 1st jan, 2020 & now only python version 3.5+ will be supported. In this tutorial, we will learn to install Python on Ubuntu systems.
Install Python on Ubuntu
On the latest versions of Ubuntu (17.10 onwards), a version of Python 3.6 comes pre-installed, but if that’s not the case with you (hardly possible). Then you can install python on ubuntu with the following command,
$ sudo apt-get update
$ sudo apt-get install python3.6
On Ubuntu 16.10 & 17.04, python 3.6 does not come pre-installed & above mentioned commands can be used to install python on Ubuntu.
For Ubuntu 14.04 & 16.04 (it’s hardly unlikely that you are still using these), we need to install a PPA first as python 3.6 is not available with default repositories. So to install python on Ubuntu 14.04 or 16.04, use the following commands,
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ sudo apt-get install python3.6
That’s it. Python is now ready & installed on the system. All these commands can also be used for Linux Mint as well as it is based on Ubuntu & also uses the same PPA as Ubuntu. Please do let us know if you have any queries, questions or suggestions using the comment box below.