centos 6升级Python2.7安装pip

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 -】

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native