Python 2.7 is not provided on CentOS 6 because Yum depends on Python 2.6. Simply installing 2.7 over 2.6 will break Yum. Thankfully, Red Hat provides us with an alternate installation method through their SCL project.
First, get Python 2.7 installed:
https://www.softwarecollections.org/en/scls/rhscl/python27/
Next, add the project path …