How to Install Python on 3.9 Ubuntu 20.04

Install Python on 3.9 Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Python 3.9 on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Python is one of the most popular programming languages in the world. With its simple and easy to learn syntax Python is a great choice for beginners and experienced developers. Python is quite a versatile programming language, you can use it to do almost anything you want, write small scripts, build games, develop websites, and many more. The Python 3.9 stable version has been released with several improvements and security updates. It included multiple new modules, improved existing modules, and many other features.


  • Operating System with CentOS 8
  • Server IPv4 Address with Superuser Privileges (Root Access)
  • Gnome Terminal for Linux Desktop
  • PuTTy SSH client for Windows or macOS
  • Powershell for Windows 10/11
  • Familiar with APT Commands

Install Python on 3.9 Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade
sudo apt install software-properties-common

Step 2. Install Python 3.9 on the Ubuntu system.

Add deadsnakes PPA to sources list:

sudo add-apt-repository ppa:deadsnakes/ppa

Once you added the PPA on your Ubuntu system, update the apt cache and install Python 3.9 on Ubuntu:

sudo apt install python3.9

Wait for the installation to complete. Check the Python version by executing:

$ python3.9 -V

Python 3.9.0

That’s all you need to do to install Python on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on Python 3.9, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.