python python install ubuntu
In this article, we will check how to install Python for Ubuntu. The installation of Python in Ubuntu is somewhat simple.
Follow the following steps to install Python:
1. Check if Python is pre-installed
To check if Python is pre-installed, type the following command in Terminal:
Python --version
Then you will get a sample response like this:
Python 3.11.9
If the response is not like this, it means Python is not installed. Then follow step 2
2. Type the following commands to install Python
sudo apt update
sudo apt install python3
3. To verify the installation, type the following command in the terminal
python3 --version