

Now, we don’t need the downloaded archive file, so delete it to free space. Make altinstall is used to prevent replacing the default python binary file /usr/bin/python. Here nproc will provide the number of CPU cores available on system. configure -with-system-ffi -with-computed-gotos -enable-loadable-sqlite-extensions


Then prepare the source code with the required values before compiling it. Step 2 – Installing Python 3.10 on Fedora/CentOSĬhange the directory to Python-3.10.8. This will create a directory named Python-3.10.8 in the current directory containing all source files for Python 3.10. Then, extract the archive file from your system tar xzf Python-3.10.8.tgz Visit the official download site to download the latest or required version of the Python.Ĭommand line users can download Python 3.10 via the command line: wget The first step is to download the Python 3.10 source code. sudo dnf install wget yum-utils make gcc openssl-devel bzip2-devel libffi-devel zlib-devel Step 1 – Download Python 3.10 Source Code In order to install all required packages, Login to your server using ssh or shell access, and execute the following command to install all prerequisites for Python. The system must have a pre-installed GCC compiler on your system. The tutorial will compile and install Python 3.10 source code on your system. This tutorial will help you with the installation of Python 3.10 on all Fedora versions and CentOS/RHEL 8 Linux systems.
