安装后运行到:python setup.py install出现错误,如下:

[root@localhost pip-18.0]# python setup.py install 
Traceback (most recent call last): 
File “setup.py”, line 6, in 
from setuptools import setup, find_packages 
ImportError: No module named setuptools

解决方法

1.下载:
在它的官网可以下载到安装包:
https://pypi.python.org/pypi/setuptools
下载路径:
#wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-12.0.3.tar.gz#md5=f07e4b0f4c1c9368fcd980d888b29a65
2. 安装
# tar xvf setuptools-12.0.3.tar.gz
# cd setuptools=12.0.3
# python setup.py install
# cd pip-18.0
# python setup.py install