How to install Python 3.9 on Linux Ubuntu 20.04

How to install Python 3.9 on Linux Ubuntu 20.04?

Spread the love

About Python

Python was released by “Guido van Rossum” in 1991. It is a general purpose, flexible and simple programming language. As Python is very easy to learn therefore it is widely used programming language around the globe. It is fun to use and is the best choice both for beginners and the professional developers. It is available online and you can download it for free. 

Python runs on various platforms like windows, Linux and mac. The syntax is very simple and easily understandable. Other programming languages requires curly braces to define scope while in Python, indentation is use to define the scope of variables, loops and functions. Python supports both the structured and object oriented programing. It is used in development of software and applications. It is used in web development, data science, machine learning, game development and Artificial Intelligence. Python provide the functionality of automatic memory management and also support exception handling which will result in code with less error. Python 3.9 is the latest version which contain a lot of additional and advance functionality.

How to Install Python on Ubuntu?


  • Requires terminal window to run the commands. Open it by pressing Ctrl+Alt+T.
  • For installing python, a user with sudo privileges is required.

Steps to Install Python on Ubuntu:

  • Run the update command.
  • Install Python.
  • Verify if a package is installed successfully.
  • Check the version of python.

The procedure for installation of python requires apt package manager. The installation process of python 3.9 on the system with apt is easier and requires very small amount of time. Python can also installed from source code.

First of all, open the terminal window (CTRL + ALT + T) then write the command to update and refresh the list of repositories.

$ sudo apt update

After the updation, write the command to install the supporting software.

$ sudo apt install software-properties-common

Now add the deadsnakes PPA by running the following command.

$ sudo add-apt-repository ppa:deadsnakes/ppa

The system will ask you to press Enter Key to continue. Press Enter for the continuation and let the process to complete.

Now for the installation of the Python 3.9, run the following command.

$ sudo apt install python3.9

How to check if a Python is installed?

Following command can be used to display whether python is installed:

$ dpkg –status python3.9

How to check the version of python?

 You can check the installed version of python in Ubuntu. After the completion of installation, execute the following command:

$ python3.9 –version

The current version of Python available in the Ubuntu repositories is 3.9.6.

The installation process is completed successfully. The Python 3.9 is successfully installed in your system. You can use it now and enjoy programming.

You can also uninstall python from Ubuntu.

How to Uninstall Python?

The Packages can also be uninstalled. Following command is used to uninstall the Python:

$ sudo apt remove python3.9

By running this command you can uninstall python.


In this article, I have shown you how to install Python 3.9 on Linux Ubuntu 20.04. I have also shown you how check the status of Python. Hope you enjoyed the article, stay for more on Techoreview.

Click below to read more from Techoreview.

Author Info:

My name is Akhunzada Younis Said. I am a software project manager in HAZTECH, a software engineering graduate and a content writer. I love working with Linux and open-source software.

Leave a Comment

Your email address will not be published. Required fields are marked *

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock