Installing Python 3.9 on Ubuntu OS
In these instructions, you will learn the process of how to install Python 3.9 on the Ubuntu OS by adding the Deadsnakes PPA (Personal Package Archives) to your system repository list.
As you have Ubuntu running, locate your terminal and open it.
To install the package, type this command into the prompt:
sudo apt-get install software-properties-common
Type “y” into the prompt and press the enter key to continue.
To add the Deadsnakes PPA to your system’s repository, type this command into the prompt:
sudo add-apt-repository ppa:deadsnakes/ppa
Press “Enter” in order to continue with the process.
Make sure to update your system’s repository list. In order to do this, type this command into the prompt:
sudo apt-get update
Press the enter key.
To initialize the installation of Python, type this command into the prompt:
sudo apt-get install python3.9
Press the enter key.
Type “y” into the prompt and press the enter key to continue.
Allow the installation to complete. To check the installation is done, type this into the command prompt:
python3.9 --version
Installation is complete!