How To Install Python on Ubuntu 25.04 (Step-by-Step Guide for Beginners)

How To Install Python on Ubuntu 25.04 (Step-by-Step Guide for Beginners)

Ubuntu 25.04 ("Plucky Puffin") ships with Python 3.13 as its default system Python. Here's step-by-step instruction how to install and manage Python effectively on your system :

✅ 1. Use the system default (Python 3.13)

Most apps rely on   /usr/bin/python3  , which is Python 3.13 on Ubuntu 25.04. To install it along with venv and pip :

sudo apt update
sudo apt install python3 python3-venv python3-pip

You can verify with :

python3 --version       # Should print Python 3.13.x
python3 -m venv myenv
source myenv/bin/activate
pip install [package]

🛠️ 2. Install another Python version via Deadsnakes PPA

If you need a version like Python 3.14, use the trusted deadsnakes PPA :

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt update
sudo apt install python3.14 python3.14-venv python3.14-dev python3.14-distutils

Then verify :

python3.14 --version

To choose your default   python3  , use :

sudo update-alternatives \
  --install /usr/bin/python3 python3 /usr/bin/python3.13 1 \
  --install /usr/bin/python3 python3 /usr/bin/python3.14 2
sudo update-alternatives --config python3

✅ Summary Table

| ------------------------ | ------------------------------------------------------------ |
| Task                     | Command                                                      |
| ------------------------ | ------------------------------------------------------------ |
| Use default Python 3.13  | sudo apt install python3 python3-venv python3-pip            |
| Add Deadsnakes PPA       | sudo add-apt-repository ppa:deadsnakes/ppa -y                |
| Install Python 3.14      | sudo apt install python3.14 python3.14-venv python3.14-dev   |
| Choose default python3   | sudo update-alternatives --config python3                    |
| Build from source        | Use  ./configure, make, sudo make install                    |
| ------------------------ | ------------------------------------------------------------ |

Tags :