How To Yum Install Python 3.7

Python is a powerful, versatile programming language that is widely used in various applications. In this tutorial, we will learn how to install Python 3.7 using Yum on CentOS/RHEL and Fedora systems.


Before we begin, make sure you have root privileges on the system or use a user with sudo access.

Step 1: Install the EPEL Repository

Extra Packages for Enterprise Linux (EPEL) is a repository providing additional software packages not included in the default CentOS/RHEL repositories. To install Python 3.7, we’ll first need to enable the EPEL repository.

Run the following command:

yum install epel-release

Step 2: Install the IUS Repository

In addition to EPEL, we will also need to install the Inline with Upstream Stable (IUS) repository which provides newer versions of software packages not included in the default repositories.

Execute the following command:

yum install

Step 3: Install Python 3.7

Now that the EPEL and IUS repositories are installed, we can proceed with installing Python 3.7 using the yum install command.

Type in the following command:

yum install python37u

Once the installation is complete, you can verify the Python version by typing:

python3.7 --version

If the installation was successful, you should see a similar output:

Python 3.7.x

Step 4: Install Pip (Optional)

If you want to install the Python package manager Pip for Python 3.7, you can do so by running:

yum install python37u-pip


Congratulations! You have successfully installed Python 3.7 on your CentOS/RHEL or Fedora system using Yum. Now you can use Python 3.7 to develop and run your applications.