Upgrade Python from 2.6 to 2.7 on Centos 6.5
Solution 1:
I can't add comment yet, only answer: Centos relies on python 2.6 for yum. You may break your system and yum if switching to 2.7 globally.
Solution 2:
Put the below line in ~/.bashrc
file:
alias python=/usr/local/bin/python2.7
Now execute the command:
source ~/.bashrc
Now type python
to check which version it has mapped to. It maps to Python2.7.