1.去51cto下載pip-8.0.2.tar.gz包
2.解壓pip-8.0.2.tar.gz
[root@localhost pip-8.0.2]# tar -zxvf pip-8.0.2.tar.gz
3.安裝
[root@localhost pip-8.0.2]# cd pip-8.0.2
[root@localhost pip-8.0.2]# python setup.py install
4.出現以下報錯
[root@localhost pip-8.0.2]# python setup.py install
Traceback (most recent call last):
File "setup.py", line 6, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptoolspython
5.此錯誤說明缺乏setuptools,去下載setuptools-2.0.tar.gz
[root@localhost ~]# wget https://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz
6.解壓setuptools-2.0.tar.gz
[root@localhost pip-8.0.2]# tar -zxvf setuptools-2.0.tar.gz
7.安裝
[root@localhost setuptools-2.0]# python setup.py build
[root@localhost setuptools-2.0]# python setup.py install
8.切換到pip-8.0.2目錄下再次進行安裝
[root@localhost pip-8.0.2]# python setup.py install
...
Processing dependencies for pip==8.0.2ide