Skip to main content

Installing Python on Linux

Installing python on linux depends slightly on your distribution, but your distribution's default package manager should have python as an installation option.

For example, Ubuntu's package manager is apt, so you can install python by running

sudo apt update
sudo apt install python3.11

If you are not familiar with your distribution's package manager, you can google "install python distribution name" to find the commands you need to run.

Alternatively, you can install and build python from source, which you can find here: You can find more information here.