How to install Python on Ubuntu?
You can install Python on Ubuntu by following these steps:
- Open the terminal and update the package list using the following command:
sudo apt update
- To install the Python development environment and dependencies, enter the following command:
sudo apt install python3 python3-pip
This will install Python 3 along with its corresponding package manager, pip.
- Check the installation status of Python by entering the following command:
python3 --version
This will display the version number of Python, confirming whether Python has been successfully installed.
Python has now been installed on Ubuntu, and you can run the Python interpreter by typing the command “python3” in the terminal.