

To install it you simply need to run the command sudo apt install software-properties-common All you have to do is add the PPA (Personal Package Archives) to your repository list, update the repository list and tell apt to install it for you.īut there is a caveat by default you can not add PPAs to the repository list, so to do it we need to install another package first "software-properties-common".

Now for some reason if you are unable to install Python directly using apt, you can use Deadsnakes PPA to install python on you Ubuntu machine. Using Deadsnakes PPA to install Python3 on Ubuntu sudo apt install pythonĪfter this you can check if Python is installed or not using python or python -version command.

Once the package repository is updated you are ready to install Python on your system. To update the package repository on Ubuntu you need to run the following command. The first thing you need to install any package on any Linux distribution is to update the package repository.

Python has become the primary choice of developers.Īnd to start programming in Python you need to install it first. Nowadays Python is being used to develop a lot of applications, whether it is a web application, a Machine Learning application or even in Data science.
