Skip to content

Instantly share code, notes, and snippets.

@nhthai2005
Created May 6, 2022 06:51
Show Gist options
  • Save nhthai2005/b0f3c5c0c94eadd1a5b5a32a0381bf66 to your computer and use it in GitHub Desktop.
Save nhthai2005/b0f3c5c0c94eadd1a5b5a32a0381bf66 to your computer and use it in GitHub Desktop.
Howto Install Python on Linux

Install Python on Linux

To install the latest version of Python on Debian-based Linux distributions, you can create a new terminal (Ctrl + Alt + T) and run the following commands:

sudo apt-get update
sudo apt-get install python3 python3-venv python3-pip

For Fedora-based Linux distributions, you can run the following:

sudo dnf install python3

To verify if Python was successfully installed, run the following command in the terminal:

python3 --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment