http://www.aichengxu.com/view/37456
http://blog.csdn.net/tiantiandjava/article/details/17242345
tar zxvf Python-2.7.10.tar.bz2
mkdir /usr/local/python27
cd Python-2.7.10
./configure --prefix=/usr/local/python27
make && make install
cd ..
mv /usr/bin/python /usr/bin/python-old
ln -s /usr/local/python27/bin/python /usr/bin/python
vi /usr/bin/yum
将文件头部的#!/usr/bin/python改成#!/usr/bin/python2.6(注意这个是之前的老版本python号,因为此时老版本才能支持yum)