[email protected]Support 24/7 · Billing 09:00 – 00:00LinkedInXFacebook
NexonHost
Netherlands Dedicated ServersAmsterdam · Equinix AM6Germany Dedicated ServersFrankfurt · Equinix FR4Romania Dedicated ServersBucharest · VoxilityAustria Dedicated ServersVienna · Interxion VIEBulgaria Dedicated ServersSofia · TelepointFrance Dedicated ServersParis · Interxion PAR — Marseille · Digital Realty MRS3Ireland Dedicated ServersDublin · Equinix DB2Italy Dedicated ServersMilan · Irideos AvalonPoland Dedicated ServersWarsawSpain Dedicated ServersMadrid · Equinix MD2United States Dedicated ServersAshburn · Equinix DC
All articles
Getting startedAugust 14, 2023

How to Install Python 3.9 on Debian 10

How To Install Python 3.9 On Debian 10

In this article, we’ll show you how to install Python 3.9 on Debian 10.

Python 3.9 is the latest major release of the Python language. It includes many new features such as new dict operators, new str functions, support for IANA time zone, and more .

 

Installing Python 3.9 on Debian 10

Compiling Python from the source allows you to install the latest Python version and customize the build options. However, you won’t be able to maintain your Python installation through the apt package manager.

Building Python 3.9 on Debian is a relatively straightforward process and will only take a few minutes.

  1. Install the dependencies necessary to build Python:

    sudo apt updatesudo 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 from the Python download page with wget :

    wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz
  3. Once the download is complete, extract the gzipped 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

    The –enable-optimizations option optimizes the Python binary by running multiple tests. This makes the build process slower.

    The script runs a number of checks to make sure all of the dependencies on your system are present:

  5. Start the Python 3.9 build process:

    make -j 2

    For faster build time, modify the -j to correspond to the number of cores in your processor. You can find the number by typing nproc.

  6. When the build process is complete, install the Python binaries by typing:

    sudo make altinstall

    We’re using altinstall instead of install because later will overwrite the default system python3 binary.

That’s it. Python 3.9 has been installed and ready to be used. To verify it, type:

python3.9 --version

The output should show the Python version:

Python 3.9.1

 

Conclusion

We’ve shown you how to install Python 3.9 on your Debian 10 system. You can now create a virtual environment and start developing your Python projects.

Keep reading
How to use logname command in Linux.
October 11, 2023

How to use logname command in Linux.

How To Use Logname Command In Linux. In the world of Linux and Unix-based systems, the command-line interface is a powerful tool that allows users to interact with the system efficiently. One such command that might not be as well-known as some others is “logname.” This command is a utility for…

Read article
How to use xdg-open command in Linux.
October 11, 2023

How to use xdg-open command in Linux.

How To Use Xdg-Open Command In Linux. Linux is renowned for its flexibility and powerful command-line tools, and the xdg-open command is no exception. xdg-open is a versatile utility that simplifies the process of opening files, URLs, and applications on a Linux system. In this article, we will…

Read article
How to use uniq command in Linux.
October 10, 2023

How to use uniq command in Linux.

How To Use Uniq Command In Linux. Linux command-line tools offer a wide range of functionality to help users manage and manipulate text data efficiently. One such utility is the uniq command, which is used for identifying and removing duplicate lines from text files. In this article, we will…

Read article
Get in Touch

Together, Let’s Build a Faster, Safer Internet.

Build scalable infrastructure with NexonHost — high-performance dedicated servers, VPS hosting, cloud hosting, and DDoS protection across Europe.

Get Started →Contact Us
[email protected]Support 24/7 · Billing 09:00 – 00:00