Hello there,
Sometimes we need python 2.7 version to run apps and Please don’t upgrade or reinstall the current python installed on your system with another one, or you will break the system or some default apps that is currently running on your system(they required that python version installed), So this is how to Install phyton 2.7 from upstream, you will have multiple python version installed. The following are the steps:
sudo yum update # updateyum
sudo yum install centos-release-scl # install SCL
sudo yum install python27 # install Python 2.7