Jump to content
EGGTCL dot us

Install Latest Python Version in Ubuntu



Install Python 3.11 on Ubuntu

To install the latest Python 3.11 version, you can use “deadsnakes” team PPA which contains more recent Python versions packaged for Ubuntu.

$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt update
$ sudo apt install python3.11


If you want to install a specific Python version or multiple versions of Python in your Ubuntu system, you can simply run the following command with the Python version number as shown.

$ sudo apt install python3.10
$ sudo apt install python3.9
$ sudo apt install python3.8
$ sudo apt install python3.7
$ sudo apt install python3.6


To view a list of all Python binaries installed on your system, run the following ls command.

$ ls -l /usr/bin/python*


List Python Binaries
lrwxrwxrwx 1 root root      10 Apr 22  2022 /usr/bin/python3 -> python3.10
-rwxr-xr-x 1 root root 5901416 Apr  2  2022 /usr/bin/python3.10
-rwxr-xr-x 1 root root 6705016 Oct 24 15:56 /usr/bin/python3.11
-rwxr-xr-x 1 root root     960 Dec 23  2020 /usr/bin/python3-futurize
-rwxr-xr-x 1 root root     964 Dec 23  2020 /usr/bin/python3-pasteurize


From the output in the screenshot above, the default Python version on the test system is 3.10, you can also check the Python version using the following command.

$ python -V

Python 3.10.4

















Recommended Comments

There are no comments to display.

  • Create New...