Python 3.10, a versatile programming language, offers new features and improvements. Follow this guide to install Python 3.10 on Debian 11.
Step 1: Install Dependencies
Begin by updating your package list and installing essential build dependencies:
$ sudo apt update
$ sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
With dependencies in place, proceed to download Python 3.10.
Step 2: Download Python 3.10
Download the latest Python 3.10 source tarball using wget:
$ wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
After downloading, extract the tarball:
$ tar -xvf Python-3.10.0.tgz
Step 3: Build and Install Python 3.10
Navigate to the extracted directory and configure the installation:
$ cd Python-3.10.0
$ sudo ./configure --enable-optimizations
Build the package:
$ sudo make -j 2
Finally, install the binaries:
$ sudo make altinstall
Step 4: Verify Python 3.10 Installation
Check the installation by verifying the version:
$ python3.10 --version
You have now successfully installed Python 3.10 on Debian 11. Enjoy the new features and improvements!







