Uploaded July 2025 | Updated September 2026, 2 weeks ago
Learn :- " How to 2 Ways to Install Python On Ubuntu 24.04.1 LTS "
Python is a high-level programming language that offers hundreds of libraries for building web applications and use in machine learning. It supports multiple programming paradigms such as structural, functional, and object-oriented programming. The Python programming language offers many features such as security updates, frameworks, integration with other programming languages, ease of use, etc.
Method - 1 II. Build from source code
apt update && sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev pkg-config wget net-tools curl git software-properties-common -y
wget python.org/ftp/python/3.13.1/Python-3.13.1.tgz && tar -xf Python-3.13.1.tgz
cd
./configure --enable-optimizations
sudo make install
python3.13 -V
Method - 2
Install Python on Linux from Package Manager:
python3
sudo add-apt-repository ppa: dead snakes/PPA
Or
add-apt-repository 'ppa:deadsnakes/ppa'
sudo apt update & apt install build-essential libssl-dev libffi-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev python3.13 -y
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1
update-alternatives --config python3
python3.13 --version
Learn :- " How to 2 Ways to Install Python On Ubuntu 24.04.1 LTS "
Python is a high-level programming language that offers hundreds of libraries for building web applications and use in machine learning. It supports multiple programming paradigms such as structural, functional, and object-oriented programming. The Python programming language offers many features such as security updates, frameworks, integration with other programming languages, ease of use, etc.
Method - 1 II. Build from source code
apt update && sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev pkg-config wget net-tools curl git software-properties-common -y
wget python.org/ftp/python/3.13.1/Python-3.13.1.tgz && tar -xf Python-3.13.1.tgz
cd
./configure --enable-optimizations
sudo make install
python3.13 -V
Method - 2
Install Python on Linux from Package Manager:
python3
sudo add-apt-repository ppa: dead snakes/PPA
Or
add-apt-repository 'ppa:deadsnakes/ppa'
sudo apt update & apt install build-essential libssl-dev libffi-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev python3.13 -y
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1
update-alternatives --config python3
python3.13 --version










