Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Install Python 3 11 On Debian 11 #61

Open
ericvlog opened this issue Apr 9, 2024 · 0 comments
Open

How To Install Python 3 11 On Debian 11 #61

ericvlog opened this issue Apr 9, 2024 · 0 comments

Comments

@ericvlog
Copy link
Owner

ericvlog commented Apr 9, 2024

Python is a high-level, object-oriented and multipurpose programming language that is extremely popular thanks to its simple and easy-to-learn syntax. It is widely used in various IT disciplines such as data analytics and visualization, web development, gaming development, AI, and machine learning.

Run the below command to update the system and install the required dependencies for the python 3.11.

apt upgrade

apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev

At the time of writing this article, the latest version of 3.11 is version 3.11.3. We recommend you check Python's official site to get the latest version for your installation, https://www.python.org/downloads/

wget https://www.python.org/ftp/python/3.11.3/Python-3.11.3.tgz

tar -xvf Python-3.11.3.tgz

If a different version has been downloaded, ensure you extract the correct file.

Next, cd into the extracted directory, in our case it is Python-3.11.3 (the name may vary if a different version has been downloaded).

And run the configure command to verify if all the dependencies are met for the Python installation.

cd Python-3.11.3

./configure --enable-optimizations

Let's get the number of CPU cores your machine has,

nproc

This will print a number, use that in the below command, make will start the build process and the number 4 represents the number of CPU cores.

make -j 4

The default Python installation is /usr/bin. If you want to install Python under /usr/local/bin instead of overwriting the default, do this:

make altinstall

Run the below command to get the version of the installed Python:

python3.11 --version

Output:

root@vps:~/Python-3.11.3# python3.11 --version
Python 3.11.3

This concludes our topic of installing Python 3.11 version.

@ericvlog ericvlog changed the title CrownCloud Wiki - How To Install Python 3 11 On Debian 11 How To Install Python 3 11 On Debian 11 Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant