In this tutorial, i am going to show you how to install python 3.9 version on Ubuntu 20.04/22.04 using terminal or command prompt.
How to Install Python 3.9 on Ubuntu 20.04/22.04
Just follow the below given steps to install python in ubuntu 20.04 using terminal:
- Step 1 – Open Terminal OR Command Prompt
- Step 2 – Update APT Package
- Step 3 – Add the deadsnakes PPA
- Step 4 – Install Python 3.9
- Step 4 – Verify Python Installation
Step 1 – Open Terminal OR Command Prompt
First of all, your terminal or command prompt by pressing Ctrl+Alt+T key:
Step 2 – Update APT Package
In this step, visit your terminal and execute the following command to update Apt package list:
sudo apt update sudo apt install software-properties-common
Step 3 – Add the deadsnakes PPA
In this step, execute the following command on your terminal to Add the deadsnakes PPA:
sudo add-apt-repository ppa:deadsnakes/ppa
When prompted, press [Enter]
to continue.
Step 4 – Install Python 3.9
In this step, execute the following command on your terminal to install python 3.9 on ubuntu:
sudo apt install python3.9
Step 4 – Verify Python Installation
In this step, execute the following command on your terminal to verify python 3.9 installation on ubuntu 20.04:
python3.9 --version
Output will be:
Python 3.9.1+
Note that, The easiest way is to install python on Ubuntu 20.04.
Conclusion
In this tutorial, i have shown to you how to install python 3.9 version on Ubuntu 20.04 using terminal or command prompt.