Python 3.10 Install on Ubuntu, Debian & Linux Mint

Python is a high-level programming language that is object-oriented. Python 3.10 is the most recent stable version for production envir...


Python is a high-level programming language that is object-oriented. Python 3.10 is the most recent stable version for production environments as of today. In the software repositories of most Debian-based Linux distributions, older versions of Python are available. Furthermore, not all Debian packages are accessible for all distributions. This lesson was tested on a Linux system running Ubuntu 20.04.

This guide will show you how to install Python 3.10 from source code on Ubuntu, Debian, and LinuxMint systems.

Prerequisites

To begin, log in with sudo privileged account access to your Debian-based machine. To update packages, open a terminal (CTRL+ALT+T) and run the commands below.

$ sudo apt update && sudo apt upgrade

Then, for Python source code compilation, install the essential packages.

$ sudo apt install wget build-essential libreadline-gplv2-dev libncursesw5-dev \
     libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev

Installing Python 3.10 with Source

Official Python source code can be downloaded from the official websites. Then compile and install the source code for your OS.

To install Python 3.10 on Debian computers, follow the procedures below:

1. You can either use the command below or download the Python 3.10 source archive from its official website.

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

2. Once the download is complete, open the archive file on your computer and extract the contents.

$ tar xzf Python-3.10.0.tgz

3. Using the cd command, navigate to the extracted directory and prepare the Python source code for compilation on your system.

$ cd Python-3.10.0 
$ ./configure --enable-optimizations

4. Finally, to complete the Python installation on the Debian system, use the following command. The altinstall option prevents the compiler from overriding the Python versions that are installed by default.

$ make altinstall

Wait for Python to finish installing on your computer.

Check Python Version

This completes the installation of Python 3.10 on an Ubuntu or Debian machine. To use this version, type python3.10 on the command prompt. To check the Python version, for example, type:

$ python3.10 -V 

Python 3.10.0

This will also install pip for Python 3.10.

$ pip3.10 -V 

pip 21.2.3 from /usr/local/lib/python3.10/site-packages/pip (python 3.10)

That's it; Python 3.10 has been successfully installed on Ubuntu, Debian, and Linux systems.

Conclusion

You learnt how to install Python 3.10 from source code on Ubuntu, Debian, and LinuxMint computers in this tutorial.

COMMENTS

Name

2023,2,Ai,2,AlmaLinux 9,3,Amazon Linux,5,Apache Web Server,1,AppImage,1,Arduino IDE,1,Artificial Intelligence,2,BalenaEtcher,1,Bitcoin,1,Blockchain Data,1,Bookworm,2,Bootable USB,1,C++,1,centos,1,CentOS 8,1,CentOS Stream,1,CMake,1,CockroachDB,2,cuDNN,1,Database Security,1,Debian,2,Debian 10,2,Debian 11,2,Debian 12,9,DNS,1,Docker,1,E-commerce,1,Fail2ban,1,Fedora Linux,1,Firefox 118,1,FreeIPA Server,1,Function,1,Game Projects,1,Git,3,Google PageSpeed,1,How to,5,How to Install,9,HTTPS,1,Introduction,1,Iptables,1,ISO Image,1,KVM,1,Laravel,1,Let's Encrypt SSL,1,Linux,4,Linux 6.4,1,Linux Kernel 6.5,1,Linux Mint,1,Linux Server,1,Linux-Based Systems,1,Mageia 9,1,Magento,1,MariaDB,1,Media Server,1,ModSecurity,1,New Features,1,Nextcloud,2,NGINX,2,Nvidia CUDA,1,odoo,1,Oracles,1,Performance,1,PHP Zip Module,1,pip,1,Plex,1,Port Forwarding,1,postgresql,2,Privacy,1,Programming,1,Pylint,1,python,5,Python 3.10,2,Quantum,1,Quantum Computers,1,Remote Branch,1,Renew,1,RHEL,1,Rocky Linux 9,2,Rufus,1,Shadow Password,1,SQLite,1,SSH,1,SSH key,1,SSH Keys,1,Step-by-Step,4,SuiteCRM,1,SUSE Linux,1,Syslog,1,System,1,Testing,1,Top 10,1,Translation,1,Ubuntu,1,Ubuntu 18.04,1,Ubuntu 20.04,5,Ubuntu 22.10,1,Ubuntu 23.04,1,Ubuntu Server,1,Ubuntu Upgrade,1,unsupported,1,Up-to-Date,1,Upgrade,1,Visual Studio Code,1,Vivaldi 6.2,1,Web 3.0,1,Web Hosting Security,1,Web Security,1,Webmin,1,What's New,1,Windows 11,1,
ltr
item
Linux code EDU: Python 3.10 Install on Ubuntu, Debian & Linux Mint
Python 3.10 Install on Ubuntu, Debian & Linux Mint
https://blogger.googleusercontent.com/img/a/AVvXsEjPz7CBdY8oIqu5OCeueMqIOYGHY1JymIEO7pZKGx9IXXrIhA4z0w1FVOVmusKEccJ2aZqx8WaaGSpbbPNnE3Vw24C9zTLCjKQg85bI8y2_h5nRIzc8r5qvVkp0OXKAbOIIJwjS3Hizf6T5MXoYMjxR10FzpfKqIky7l20M0HVpPt1UbIE0A_LX-kIGKg=w640-h360
https://blogger.googleusercontent.com/img/a/AVvXsEjPz7CBdY8oIqu5OCeueMqIOYGHY1JymIEO7pZKGx9IXXrIhA4z0w1FVOVmusKEccJ2aZqx8WaaGSpbbPNnE3Vw24C9zTLCjKQg85bI8y2_h5nRIzc8r5qvVkp0OXKAbOIIJwjS3Hizf6T5MXoYMjxR10FzpfKqIky7l20M0HVpPt1UbIE0A_LX-kIGKg=s72-w640-c-h360
Linux code EDU
https://linuxcodeedu.blogspot.com/2021/11/python-310-install-on-ubuntu-debian.html
https://linuxcodeedu.blogspot.com/
https://linuxcodeedu.blogspot.com/
https://linuxcodeedu.blogspot.com/2021/11/python-310-install-on-ubuntu-debian.html
true
6096992636254302192
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content