
Open the Terminal and run the below commands as instructs.įirst update the repository index and install the other required packages that will need to build the Python. In this way, you download the source code and build. Some hardcore users only want to install latest version of packages by building from the source code.

You can check the version by running the below command. Update the software repository index again and install the Python: sudo apt-get update sudo add-apt-repository ppa:deadsnakes/ppa

Now run the below command to add the third party deadsnakes PPA to your Ubuntu repository. Install the common dependencies required for Python sudo apt-get install software-properties-common Update the software repository index with below command: sudo apt-get update This way you can also get update the package with apt package manager.įirst open the Terminal software by using shortcut key CTRL+ALT+T or go to menu and open the Terminal. This is the easy way to install Python package. You can simply add the third-party PPA repository to your Ubuntu software repository. Here are some simple ways you can install Python easily. There are many ways you can install Python package. You need to be logged as non-root user with sudo privilege to install packages in system. However Python2 comes preinstalled in Ubuntu, but we will install latest version of Python 3.8 which is latest stable version of Python. In this tutorial, we will go through installing Python 3.8 in Ubuntu. Python is popular language for its short syntax, data analysis, machine learning and artificial purpose. Python is flexible and powerful open-source programming language.
