Installing Python 3.9 on Ubuntu

Python is a robust and most popular programming language. In the last five years, python has grown by 19.1% share worldwide becoming the world’s most used and popular (30.8% share) programming language.

Apart from these stats, the heart of the python lies in its efficient memory management. It covers almost every application ranging from software development to Artificial Intelligence.

Recently, the python 3.9 stable version has released that has multiple new functionalities and various security updates.

In this tutorial, we will be installing the newly released Python3.9 version on our ubuntu machine. So let us get started.

Deadsnakes is the team that provides the PPA for the recently released python version for ubuntu. So we will use this repository for installing our python 3.9 version.

1. Pre Configuration

Open up the terminal with the command Ctrl+Alt+T and then hit the following commands for updating the system.

2. Add Deadsnakes PPA repo in the system

Now we have to add and register the deadsnakes repository in our ubuntu system. For that enter the following commands in your terminal.

3. Update the apt-cache and Install Python 3.9

Now after we have added the PPA in our ubuntu system, we have to update our apt-cache and finally install the new version of python.

3. Checkout the new version!

Now wait for the installation and checkout the nee version with the following command:

Happy Coding !

Learner and Programmer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store