How To Install Python In Ubuntu 24.04 LTS
Python is one of the most popular programming languages right now in the world. In this article we will take you through the steps on how to install Python in Ubuntu 24.04 LTS. There is high chance that there might be the Python per-installed in your Ubuntu but if you want to install the latest version of Python then this tutorial is for you.
If you have already installed a Python Package on Ubuntu then run the following command to check the version of the installed Python Module,.
python –version
How To Install Python In Ubuntu 24.04 LTS
There are multiple ways to install Python in Ubuntu. let’s start with the:
At first update your Ubuntu with the following command:
sudo apt update
1. Install Python on Ubuntu using Repository
Run the following command in your Ubuntu at first:
sudo apt install software-properties-common
Now, run the following command:
sudo add-apt-repository ppa:deadsnakes/ppa
Finally, Execute the following command to install Python. You can mention the version number of your choice.
sudo apt install python[version number]
2. Install Python on Ubuntu using APT Installer
It’s pretty simple where you can install Python using the following single command:
sudo apt install python[version number]
3. Install Python on Ubuntu using the Source Link
In this method, Visit the Official Python Page & copy the Gzipped Source Tarball link of the version that you want to install. Run the following command with the source link.
sudo wget <Gzipped Source Tarball>
And, Extract the downloaded TGZ File using the following Linux Command.
tar -xf <Gzipped Source Tarball>.tgz
Configure the file before starting the installation process.
./configure --enable-optimizations
Finally, run the following command to complete the process of python installation on Ubuntu 24.04 LTS.
sudo make install