#下载python
#wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
#安装支持https
yum install openssl-devel
#编译安装
tar -jxvf Python-2.7.3.tar.bz2 cd Python-2.7.3
./configure make&&make install
#检查安装结果
/usr/local/bin/python2.7 -V
#设置软连接
mv /usr/bin/python /usr/bin/python2.6.6 ln -s /usr/local/bin/python2.7 /usr/bin/python
#解决yum问题
vi /usr/bin/yum
#!/usr/bin/python2.6.6
#安装easy_install
wget -q http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
#如果要用装mysql-python
yum -y install mysql-devel libxml2 libxml2-dev libxslt* zlib gcc openssl
end