

We still suggest to the package manager for the Python installation, but if the package manager is failing to do it, compile it from the source code.įor most people, building Python from source isn’t good advice. In this tutorial, you have found the instructions to install Python 3.11 on CentOS, RHEL, and Fedora systems by compiling it from the source code. Now remove the downloaded source archive file from your system sudo rm /usr/src/Python-3.11.3.tgz Step 3: Check Python VersionĬheck the latest version installed of python using the below command. Make altinstall is used to prevent replacing the default python binary file /usr/bin/python. configure -enable-optimizations sudo make altinstall configure script and the make with altinstall. Use the below set of commands to compile Python source code using the. tar xzf Python-3.11.3.tgz Step 2: Install Python 3.11 on CentOS & Fedora You can also download the latest version in place of specified below.


