//安装python2.7 执行之前先运行python 看是否已经有了 wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 tar -jxvf Python-2.7.3.tar.bz2 cd Python-2.7.3 ./configure make all make install mv /usr/bin/python /usr/bin/python2.6.// //指定center的版本 vi /usr/bin/yum //将文件头部的 #!/usr/bin/python //更换为 #!/usr/bin/python2.6.6 //以上是没有安装python2.7的步骤 如果安装了就不用管了
//安装pip 看情况是否需要执行 yum install python-setuptools wget https://bootstrap.pypa.io/ez_setup.py -O - | python wget http://pypi.python.org/packages/source/d/distribute/distribute-0.6.10.tar.gz tar zxvf distribute-0.6.10.tar.gz cd distribute-0.6.10 python setup.py install cd easy_install pip