安装依赖环境@H_502_3@
yum install zlib-devel zlibopenssl openssl-devel readline-devel(zlib安装setuptools的时候会用到,没有的会报“RuntimeError: Compression requires the (missing) zlib module”;openssl是pip会用到,没有会报ImportError: cannot import name HTTPSHandle,如果不提前安装会来回重新编译安装python,很浪费时间)@H_502_3@
安装python@H_502_3@
vim /usr/bin/yum(把第一行的语言环境改成python_old)@H_502_3@
安装pip@H_502_3@
wget https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz#md5=3823d2343d9f3aaab21cf9c917710196@H_502_3@
tar xf pip-7.1.2.tar.gz &&cd pip-7.1.2 && python setup.py install@H_502_3@
pip install --upgrade pip@H_502_3@
pip -V@H_502_3@
安装easy_install@H_502_3@
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-18.2.tar.gz#md5=52b4e48939ef311d7204f8fe940764f4@H_502_3@
tar fxz setuptools-18.2.tar.gz &&cd setuptools-18.2 &&python setup.py install@H_502_3@