How to Install Python on Linux

Python is a popular high level programming language which can be used on a server to create web applications. To install Python on Linux, you can follow these steps depending on your Linux distribution. Most Linux distributions already have Python installed, but you can update or install it manually if needed.

 

How to Install Python on Linux

1. For Ubuntu/Debian-based distributions:

Open a terminal and run the following commands to install Python:

To install Python:

sudo apt update
sudo apt install python3

To verify the installation

python3 --version

2. For Fedora-based distributions:

To install Python:

sudo dnf install python3

To verify the installation:

python3 --version

3. For Arch Linux-based distributions:

To install Python:

sudo pacman -S python

To verify the installation:

python --version
 

Previous Post Next Post