Tutorial Install Python 3.8 on Centos/RHEL 8 Linux

Tutorial Install Python 3.8 on Centos/RHEL 8 Linux

In this tutorial, we are going to step by step how to install Python 3.8 on Centos / RHEL 8 Linux.

Tutorial How to Configure and Install Python 3.8 on Centos/RHEL 8 Linux

Install the required Python development libraries using the following command.

sudo dnf install gcc openssl-devel bzip2-devel libffi-devel

Step 1) Update Centos

Before you do anything, you need to update Centos, do this with the following command:

yum -y update

Step2) Download Python 3.8

You can download Python from its official site using the following command.

cd /opt
wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz

Note: If wget is not enabled, you can install it with the following command:

yum -y install wget

Then, with the command below, you must extract the downloaded archive:

tar xzf Python-3.8.3.tgz

Step 3) Install Python on Centos

After extracted, go to Python-3.8.3 folder, Then configure the source files based on your server or system environment.

cd Python-3.8.3
sudo ./configure --enable-optimizations
sudo make altinstall

Step 4) Test Python on Centos 8

After completing the installation steps, we test the installed version of Python with the following command:

python3.8 -V

The output should be as follows:

Python 3.8.3

Congratulations, you were able to successfully install and configure Python on Centos.


Use of this Site is subject to express terms of use. By using this site, you signify that you agree to be bound by these