This article covers how to install and compile Python3.9 using different methods, using PPA repo, compiling it from the source code, and installing it using the Linuxbrew tool.
We can now start using Python 3.9 for our projects.
Python is a high-level programming language, mostly used to write scripting and automation. It is a very popular language known for its simplicity and easy syntax.
Python one of the best language for for artificial intelligence (AI).
To Install Python 3.9 on Ubuntu 20.04 using APT:
1. Update package list, type:
$ sudo apt update
2. Install software-properties-common package to easily manage distribution and independent software vendor software sources:
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
3. Now install python 3.9 using apt command:
$ sudo apt-get install python3.9
4. The following command can help to identify the proper install location of Python:
$ which python3
The execution of the above command produces the following output on console: