0% found this document useful (0 votes)
5 views

python

This document provides a step-by-step guide for installing Python on Ubuntu/Debian-based distributions. It includes instructions for updating the package list, checking for existing Python installations, installing Python 3, and optionally installing pip and development tools. The final steps confirm the installation and readiness of Python for use in the terminal.

Uploaded by

akgamer077
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

python

This document provides a step-by-step guide for installing Python on Ubuntu/Debian-based distributions. It includes instructions for updating the package list, checking for existing Python installations, installing Python 3, and optionally installing pip and development tools. The final steps confirm the installation and readiness of Python for use in the terminal.

Uploaded by

akgamer077
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Installing Python on Ubuntu/Debian-based Distributions

=======================================================

Step 1: Open the Terminal


--------------------------
You can open the terminal by pressing Ctrl + Alt + T.

Step 2: Update Package List


---------------------------
Run the following command to ensure your system package list is up to date:

sudo apt update

Step 3: Check if Python is Already Installed


--------------------------------------------
Most Ubuntu/Debian systems come with Python pre-installed.
To check the installed version:

python3 --version

If Python 3 is installed, you'll see something like:


Python 3.10.12

Step 4: Install Python 3


------------------------
If Python 3 is not installed, run:

sudo apt install python3

Step 5: (Optional) Install pip (Python Package Installer)


----------------------------------------------------------
To install pip for Python 3:

sudo apt install python3-pip

Verify pip installation:

pip3 --version

Step 6: (Optional) Install Python Development Tools


---------------------------------------------------
For compiling Python modules, install:

sudo apt install python3-dev python3-venv build-essential

Step 7: Verify Installation


---------------------------
Check Python version again to confirm:

python3 --version

To launch Python shell:

python3

You can now run Python commands directly in the terminal.

Done!
-----
Python is now installed and ready to use on your Ubuntu/Debian-based system.

You might also like