How to Install Python on Ubuntu 22.04

Install Python on Ubuntu 22.04

In this article, we will have explained the necessary steps to install Python on Ubuntu 22.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 high-level languages, focusing on high-level and object-oriented applications from simple scrips to complex machine learning algorithms. It is known for its straightforward conversion to newer releases and its basic, easy-to-learn syntax, which enhances readability and also reduces software maintenance costs. Python programming language is available to use on UNIX, Linux, Windows, and macOS.


  • Operating System with Ubuntu 22.04
  • 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 Ubuntu 22.04 LTS

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 dirmngr apt-transport-https gnupg

Step 2. Install Python on Ubuntu Linux.

Installing the Python on your Ubuntu 22.04 Jammy Jellyfish system is straightforward, Now add deadsnakes PPA repository:

sudo add-apt-repository ppa:deadsnakes/ppa

After that, install the latest version of Python 3.11 using the below command:

sudo apt install python3.11

Once the installation is completed, we can check which version of Python3.11 is exactly installed on our system:

python3.11 --version

Step 3. Install Python PIP.

By default, installing python-3.11 using the following APT command should work for all those using the Python PPA repository:

sudo apt install python3-pip

Now verify the PIP 3.11 version installed with the following command below:

pip3.11 --version

That’s all you need to do to install Python on Ubuntu 22.04 LTS Jammy Jellyfish. I hope you find this quick tip helpful. For further reading on the installation of the Python Programming Language, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.