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  

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  
Recommended Article: How to install Fail2Ban to protect SSH on CentOS 8

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.



Also, see

How to install Django on Ubuntu 20.04

Tutorial Install PIP on Windows

How useful was this post?

Click on a star to rate it!

Average rating 1 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

View More Posts
Tom Veitch
Eldernode Writer
We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

Leave a Reply

Your email address will not be published. Required fields are marked *

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way


7 days a week, 24 hours a day