Ubuntu

How to Install Python 3.9 On Ubuntu 20.04 and 20.10


Python, an object-oriented programming language, is well-liked among beginners and experienced developers due to its easy and user-friendly syntax. This versatile language is used as a key language in top tech companies.

With new features/modules, security updates, and improvements, the python 3.9 version has been released to make this functional language more useful and top-ranked.

Now, let’s check how to get python 3.9 on Ubuntu 20.04 device.

How to Install Python 3.9 On Ubuntu 20.04 (LTS) and 20.10:

There are two main approaches to install python 3.9 on Ubuntu 20.04. but we will go with the convenient and straight-forward approach.

Your terminal will be opened by pressing Ctrl+Alt+T. Once your terminal is opened, follow the steps listed below:

Step 1: Add repository with the command:

$ sudo add-apt-repository ppa:deadsnakes/ppa

D:\Kamran\Feb\03\Article\Pics\images\image1 final.png

Step 2: Use the update command to update your apt cache. It will help to update all packages listed on Ubuntu.

$ sudo apt update

D:\Kamran\Feb\03\Article\Pics\images\image3 final.png

Once all the packages are updated, use the below-mentioned command to install the updated version of python 3.9.

$ sudo apt install python3.9

D:\Kamran\Feb\03\Article\Pics\images\image2 final.png

So, python 3.9 is installed on your system. You can check its version if there is any doubt by using the command:

$ python 3.9 -V

D:\Kamran\Feb\03\Article\Pics\images\image5 final.png

Now, the installation process of python 3.9 is completed.

How To Uninstall Python 3.9 On Ubuntu 20.04 (LTS) 20.10:

In addition, if you want to remove or uninstall it, the following command will be used, and it will remove a python from your system.

$ sudo apt autoremove python3.9

D:\Kamran\Feb\03\Article\Pics\images\image4 final.png

Conclusion:

In this article, we have learned how to install the Python 3.9 version on Ubuntu 20.04. Python is a high-level, object-oriented language that is simple, easy to learn, and convenient for large-scale projects.

About the author

Syeda Wardah Batool

I am a Software Engineer Graduate and Self Motivated Linux writer. I also love to read latest Linux books. Moreover, in my free time, i love to read books on Personal development.