How to Install Python 3.10 on Debian 11 'Bullseye' | Compile Python 3.10 from Source on Debian 11

preview_player
Показать описание
How to Install Python 3.10 on Debian 11 "Bullseye" | Compile Python 3.10 from Source on Debian 11 | Python 3.10.0 is the newest major release of the Python programming language, and it contains many new features and optimizations. In this guide, we will install Python 3.10 on Debian 11 by building it from the source code. One advantage of this method is that we are guaranteed the latest available version of Python.
Following are the Major Steps for Installing Python 3.10.0 on Debian 11 Bullseye.

0. Installing Required Libraries
1. Download Python 3.10 from the official Python release page. While on this page, download the Python 3.10 G zipped tarball.
2. With the tarball downloaded, extract it
3. Navigate into the extracted directory and run the configure command to check if the required dependencies are available. In the command, the –enable-optimizations flag is used to optimize the binary and run multiple tests.
4. Install Python 3.10 using [ sudo make altinstall ]
5. Wait for the Compile , Build & Install
Рекомендации по теме
Комментарии
Автор

My new Debian 11 installation returned 'no C compiler found in path' during the enable optimizations stage. Solution was to install gcc then return to Python optimizations. Other versions of Linux I've used came with gcc & Python installed. Much simpler to install Python on Windows systems but it was kind of enjoyable see all the Python compiled with gcc.

tertia
Автор

so i tried downloading python 3.12.3 and it downloaded but when i do python3.12.3 --version bash tells me python3.12.3: command not found

Mohamed_Osama
Автор

Worked well for me downloading python 3.11

Koda
Автор

I am having configuration error; error: in How do I troubleshoot that?

parinithagiridharan
Автор

Why compile it when you can just install it? apt-get install python3 python3-dev

npjooxk
Автор

hello Sir hope you give me good soliution my python ./configure optimizations command not working
no acceptable c compieler found in path

YasirArafat-vtrf
Автор

Remember to speed up the process by using the -j flag. This specifies the number of cores in your system. nproc command shows your system cores. make -j 4

BarrySuridge
Автор

What about script file how to run and create

abhinav_rajpati
Автор

Unable to use pip with this python version can u pls upload pip install for this python version 3.10

karthikpaneerselvam
Автор

ik this video is kinda old but running python3 --version still gives me 3.5.2

emerald_grenade
Автор

Following this tutorial crashed Debian in my VM and now I can't use it anymore.

randallN-swee
Автор

when i use sudo make altinstall it says : sudo: make: command not found i use Deb 12, How to fix this?

qp_parham