由于在Python2.7.6下安装pip几次出错,为了后续安装不在出错现在梳理一下安装步骤:
1.安装Python2.7.6
# yum -y install gcc openssl openssl-devel
# tar zxvf Python-2.7.6.tgz
# cd Python-2.7.6
# ./configure
# make install
# mv /usr/bin/python /usr/bin/python.bak
# ln -s /usr/local/bin/python2.7 /usr/bin/python
# python -V
Python 2.7.6
2.安装easy_install
#wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
#sh setuptools-0.6c11-py2.7.egg
3.通过easy_install安装pip
#easy_install pip
#ll /usr/local/bin | grep pip
到此安装结束!
时间: 2024-10-11 05:38:21