

Still, working with the 7 version of CentOS? Install Python 3.9 on it to do almost anything you want, write small scripts, build games, develop websites, create machine learning algorithms, analyze data, and more. The output should be as follows: Python 3.9.0 How To Install Python 3.9 On CentOS 7 configure -enable-optimizations sudo make altinstall Step 4: How To Test Python On CentOS 8Īfter completing the installation steps, we test the installed version of Python with the following command: python3.9.0 -V Then, with the command below, you must extract the downloaded archive: tar xzf Python-3.9.0tgz Step 3: How To Install Python On CentOSĪfter extracted, go to the Python-3.9.0 folder, Then configure the source files based on your server or system environment.

Note: If wget is not enabled, you can install it with the following command: yum install wget -y You can download Python from its official site using the following command. Then follow steps 1 to 4 in the rest of this tutorial: sudo dnf install gcc openssl-devel bzip2-devel libffi-devel Step 1: How To Update CentOSīefore you do anything, you need to update Centos, do this with the following command: yum update Step 2: How To Download Python 3.9 Step 1: How To Setup the Python 3.9 Environment from the sourceįirst, install the required Python development libraries using the following command.Step 1: How To Update the CentOS Environment.

