
sudo yum update Step 3: Download and install Python. sudo yum install -y Step 2: Update Yum to finish adding the repository. Step 1: Open a Terminal and add the repository to your Yum install.

In this case, we are adding the Inline with Upstream Stable repository, a community project whose goal is to bring new versions of software to RHEL-based systems. Here, we simply add a repository that has the pre-compiled version ready for us to install. This is the easier method of the two for installing Python on your machine. Method 1: Install Python 3.6.4 on CentOS 7 From a Repository

So, we can either compile Python on our machine from the source code or add a repository that has a pre-compiled version of Python for CentOS 7. The reason there are two methods is that Python 3.6.4 does not come by default in the built-in Yum repositories. In this tutorial, we will show you two methods of installing Python version 3.6.4 on your CentOS 7 machine. In order to have the latest version of Python, the user will have to install it manually. However, the pre-installed version of Python found on CentOS VPS is a much older version. Python is a general-purpose object-oriented programming language designed to be used as a software solution for almost all kinds of problems. They all rely on Python’s reliability and performance to complete many tasks at a time.

Python is at the core of many popular websites and programs – YouTube, Instagram, and even Yum on CentOS, to name a few. We’ll show you how to install Python 3.6.4 on CentOS 7.
