Python is an open-source general-purpose interpreted programming language. Python is dynamically typed and garbage-collected. It is used to build all kinds of applications. Python consistently ranks as one of the most popular programming languages. Python was developed by Guido van Rossum at Centrum Wiskunde & Informatica (CWI) in the Netherlands as a successor to ABC programming language. In this tutorial, you will learn how to install Python 3.9 on Ubuntu.
The current versions are 3.x while 2.x is no longer supported, since 2020. Python 3.9 is the latest major release of the Python language. Python 3.9 stable version has been released with several improvements and security updates and it includes many new features and optimizations. Now You are going to install Python 3.9 on Ubuntu.
Installing Python 3.9 on Ubuntu Using Apt
To install Python 3.9 on Ubuntu using Ubuntu package manager apt.
sudo apt install software-properties-common
Step 1. Configure deadsnakes PPA
Configure deadsnakes PPA to your system. To configure deadsnakes PPA to your system use the following command in termial. When prompted, hit
sudo add-apt-repository ppa:deadsnakes/ppa
Step 2. After configuring deadsnakes PPA to your system. You can install Python 3.9 on Ubuntu. To install Python 3.9 use the following command in terminal.
sudo apt install python3.9
After installing Python 3.9 successfully. Now you check the installation and Python 3.9 Version by following commands in the terminal.
Uninstall Python 3.9
If you to uninstall Python, Use the following command in terminal to uninstall Python.
sudo apt autoremove python3.9
|Install Python 3.10 on Ubuntu 22.04|
|Install Python 3.10 on Ubuntu 20.04, 18.04|
|Install Python 3.9 on Ubuntu 20.04|