In this guide, you will learn how to install and setup Python 3.9 in Ubuntu, Debian or any of their derivatives.
Python is one of the most popular general purpose programming language out there. It supports multiple programming paradigms including structured, object-oriented, and functional.
Recently, Python 3.9 is released, introducing many updates. So let’s see how to install it on Ubuntu, Debian or any of their derivatives.
Installing Python 3.9 on Ubuntu / Linux Mint
In order to easily install Python 3.9 on Ubuntu, Debian, or any of their derivative, we are going to use deadsnakes repository.
Open up your terminal and add the repository.
sudo add-apt-repository ppa:deadsnakes/ppa
Once it’s added, your system should automatically start to update the apt cache for available packages. If it does not then update it.
sudo apt-get update
Now you can install the Python3.9.
sudo apt-get install python3.9
After the installation, you can check for the Python version.
python --version
Output:
linuxh2o@linuxh2o-yt: $ python3.9 --version
Python 3.9.0+
Learn more about apt: Complete apt package manager guide for Linux
Watch Video guide on YouTube
Additionally, You can also watch a step-by-step video guide on YouTube to get a better understanding of it.
Conclusion
So that’s it on how to install Python3.9 on Ubuntu, Debian, or any of their derivatives. Let me know what you think about it in the comments and subscribe to the LinuxH2O Youtube channel. Till then, keep enjoying Linux.