python -V
yum -y update
yum groupinstall -y development
yum install -y zlib zlib-dev openssl openssl-devel sqlite sqlite-devel bzip bzip2-devel mysql-devel
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar -xvf Python-2.7.6.tar.xz
cd Python-2.7.6
./configure
make && make altinstall
mv /usr/bin/python /usr/bin/python2.6.6
ln -s /usr/local/bin/python2.7 /usr/bin/python
vi /usr/bin/yum(#!/usr/bin/python 改为 #!/usr/bin/python2.6.6)
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
tar -xvf setuptools-1.4.2.tar.gz
cd setuptools-1.4.2
python setup.py install
ln -s /usr/local/bin/easy_install-2.7 /usr/bin/easy_install
easy_install pip
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7
【curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7 -】
yum -y update
yum groupinstall -y development
yum install -y zlib zlib-dev openssl openssl-devel sqlite sqlite-devel bzip bzip2-devel mysql-devel
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar -xvf Python-2.7.6.tar.xz
cd Python-2.7.6
./configure
make && make altinstall
mv /usr/bin/python /usr/bin/python2.6.6
ln -s /usr/local/bin/python2.7 /usr/bin/python
vi /usr/bin/yum(#!/usr/bin/python 改为 #!/usr/bin/python2.6.6)
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
tar -xvf setuptools-1.4.2.tar.gz
cd setuptools-1.4.2
python setup.py install
ln -s /usr/local/bin/easy_install-2.7 /usr/bin/easy_install
easy_install pip
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7
【curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7 -】