we have a similar tutorial for you<\/a> otherwise, you can proceed with this tutorial.<\/p>\n\n\n\nPrepare the System<\/h2>\n\n\n\n Log in to your Debian-based system with sudo privileged account access. Open the terminal and execute the commands below to update packages.<\/p>\n\n\n\n
$ sudo apt update && sudo apt upgrade<\/code><\/pre>\n\n\n\nNext, install the required prerequisite packages for the compilation of the Python source code.<\/p>\n\n\n\n
$ sudo apt install wget build-essential libreadline-gplv2-dev libncursesw5-dev \\\ntk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev libssl-dev libsqlite3-dev zlib1g-dev<\/code><\/pre>\n\n\n\nDownload and Install Python 3.10 Source<\/h2>\n\n\n\n Visit the official Python site and download the latest stable release source package (Python 3.10.1)<\/p>\n\n\n\n
$ wget https:\/\/www.python.org\/ftp\/python\/3.10.1\/Python-3.10.1.tgz<\/code><\/pre>\n\n\n\nNext, extract the archive file on your system<\/p>\n\n\n\n
$ tar xzf Python-3.10.1.tgz<\/code><\/pre>\n\n\n\nEnter into the extracted directory with cd<\/code> command, then configure the Python source code before compiling it on your system.<\/p>\n\n\n\n$ cd Python-3.10.1\n$ .\/configure --enable-optimizations<\/code><\/pre>\n\n\n\nFinally, run the make command to compile and install Python 3.10 on Ubuntu or any other Debian-based system. The altinstall<\/code> use here prevents the compiler from overriding the default Python versions.<\/p>\n\n\n\n$ make altinstall<\/code><\/pre>\n\n\n\nConfirm and Check Python Version<\/h2>\n\n\n\n If the above make command runs without errors (normally it does) then it means you have successfully installed Python 3.10 on your Linux system. You can confirm the installation by checking the Python version using this command<\/p>\n\n\n\n
$ python3.10 -V\n\nPython 3.10.1<\/code><\/pre>\n\n\n\nYou can check pip for the Python version using the following command<\/p>\n\n\n\n
$ pip3.10 -V\n\npip 21.2.3 from \/usr\/local\/lib\/python3.10\/site-packages\/pip (python 3.10)<\/code><\/pre>\n\n\n\nThat’s It<\/h2>\n\n\n\n In this micro tutorial, you learned how to compile and install Python 3.10 on Ubuntu, Debian, and LinuxMint systems using source code. Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"
By the end of this guide, you will be able to install Python 3.10 on Ubuntu and Debian-based Linux systems such as LinuxMint and more. The motivation for this is…<\/p>\n","protected":false},"author":1,"featured_media":11506,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,25,27,16,18],"tags":[183,350,354,424,449,471,475,544,545,591,598],"yoast_head":"\n
How To Install Python 3.10 on Ubuntu 20.04 and Debian-Based Systems<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n