This step may not be required. I didn't have to do this when I updated my host machine.
yum -y update yum group install "Development tools"
Add the EPEL (Extra Packages for Enterprise Linux) repository to your system:
yum install epel-release
Finally, install Python 3 and the Pip package manager:
yum install python34 yum install python34-pip
If the Python version is incorrect, you can locate the available version with a Yum search, as follows:
yum search python3