CentOS7.2下安装python安装pip-8.0.2管理

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.gz3.安装[root@localhost pip-8.0.2]# cd pip-8.0.2[root@localhost pip-8.0.2]# python setup.py ins...

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 setuptools

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.2

本文标题为:CentOS7.2下安装python安装pip-8.0.2管理