首页 > 代码库 > python:ImportError: No module named setuptools

python:ImportError: No module named setuptools

python安装模块时:

python  setup.py install 

错误:ImportError: No module named setuptools

没有setuptools的模块,安装这个模块即可解决此问题:

下载setuptools包

wget   thttp://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz

tar zxvf setuptools-0.6c11.tar.gz

cd setuptools-0.6c11

python setup.py build

python setup.py install  #安装