ObjectivePython version 3 is now the default python interpreter on Ubuntu 18.04 Desktop or Server release. However, if you need to install the older Python 2 version you can do that with a single
Operating System and Software Versions
- Operating System: - Ubuntu 18.04 Bionic Beaver
RequirementsPrivileged access to your Ubuntu System as root or via
sudocommand is required.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - requires given linux commands to be executed as a regular non-privileged user
Other Versions of this TutorialUbuntu 20.04 (Focal Fossa)
InstructionsTo install Python 2 version on Ubuntu 18.04 open up terminal and enter:
$ sudo apt install python-minimal
Check installed python version:
$ python --version Python 2.7.14+Visit the following page if you need to install PIP tool for managing Python 2 packages.