
If you need to use python 3 as part of Python application dependency, there are several ways to install python3 on Debian 8. At the time of this writing, the latest stable version of Python is 3.6, released on Mar 21rd, 2017.

Debian 7 and Debian 8 come with two versions of Python, Python 2.7 and Python 3.5. For those of you who didn’t know, Python is an open-source and beginner-friendly programming language. Note: Replace 3.11 with the version number that you installed.In this tutorial, we will show you how to install and configure Python 3 on Debian 8. To verify that the installation was successful, execute the following command and you should see the expected version number: $ python3.11 -version Note: the altinstall option is necessary to ensure that the system-default Python files won’t be touched. Finally, proceed to install Python: $ sudo make altinstall You can check this by running the nproc command. Once done, we build the Python source with the make command followed by the -j parameter and the number of cores that you have in your system. Optimize the Python build process by executing: $. Change into the directory where the Python source was extracted: $ cd Python*/ Extract the downloaded file with tar command: $ cd ~/Downloads Download either the compressed gzipped tarball, or the xz tarball. Navigate to the Python download page and choose from either the latest stable release or pre-release version. Next, we’ll install the dependencies: $ sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev libbz2-dev Before installing Python, always make sure that you have your system up to date: $ sudo apt update The next method takes a few additional steps, but ensures that you download and install the absolute latest Python release. Install Latest Version From Official Download This is the easiest method, but you won’t always get the absolute latest Python release: $ sudo apt update One option is to install from the Debian repository with apt command, or we can manually install the latest official release of Python from.

In this tutorial, you will learn how to install Python on Debian 11 Bullseye.
