

The following extra packages will be installed: Output indicating that I am installing Python 3.9 on Ubuntu 20.04 LTS or Debian 10/11: Reading package lists. Type the following command to install python version 3.8 or 3.9: Run the following apt command/ apt-get command to install python version 2.x:

Python3.9 - Interactive high-level object-oriented language (version 3.9) Python2.7 - Interactive high-level object-oriented language (version 2.7) Python3.8 - Interactive high-level object-oriented language (version 3.8) $ apt-cache search python | egrep "^python. Use the following apt-cache command along with the egrep regex or grep to search for available versions of Python under Debian and Ubuntu Linux:

Make sure we update our repos and apply security updates on Debian/Ubuntu too.
