在python运行过程中出现如下错误:
python错误:
ImportError: No module named setuptools
|
这句错误提示的表面意思是:没有setuptools的模块,说明python缺少这个模块,那我们只要安装这个模块即可解决此问题,下面我们来安装一下:
在命令行下:
下载setuptools包
shell# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
|
解压setuptools包
shell# tar zxvf setuptools-0.6c11.tar.gz
shell# cd setuptools-0.6c11
|
编译setuptools
shell# python setup.py build
|
开始执行setuptools安装
shell# python setup.py install
|
安装完成
原文地址:http://www.pythontab.com/html/2012/pythonhexinbiancheng_1220/21.html