Ubuntu

How to install Python on Linux?

Submitted by Kamal Wickramanayake on

Python can easily be installed by using the package management software of the Linux distribution used.

In case of Ubuntu, "apt" command can be used as follows to install Python 3.8 from a terminal:

sudo apt install python3.8

Now, type "python3.8" in the terminal and the Python interactive shell should appear as follows:

Python interactive shell