DEV Community

Cover image for How to install python 3.9 on Debian 10
Griphcode
Griphcode

Posted on

How to install python 3.9 on Debian 10

Python is one of the most popular programming languages that many Developers use around the globe. In this tutorial we will use a package manager called apt.

Installing Python 3.9 on Debian 10

  1. Install the dependencies necessary to build Python:
    sudo apt update
    sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev

  2. Download the latest release’s source code with wget:
    wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz

  3. When the download is complete, extract the zipped archive:
    tar -xf Python-3.9.1.tgz

  4. Navigate to the Python source directory and execute the configure script:
    cd Python-3.9.1
    ./configure --enable-optimizations

  5. That's basically it! To check what python version you have do:
    python3.9 --version

Thanks for checking out my blog. If this was helpful be sure to like it!

Top comments (0)