python setuptools安装

如果你没有安装setuptools,而你的机器又没法联网
运行
python setup.py install

你会发现惊奇地发现有错误:

Traceback (most recent call last): File "setup.py", line 5, in <module> from setuptools import setup, Extension ImportError: No module named setuptools


这时想到的是,下载setuptools:
setuptools-0.6c11-py2.7.egg  ( md5 )

下载安之后进行安装:

sh setuptools-0.6c11-py2.7.egg

----------------------------结果---------------------------------

Adding setuptools 0.6c11 to easy-install.pth file Installing easy_install script to /usr/local/bin Installing easy_install-2.7 script to /usr/local/bin Installed /usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg Processing dependencies for setuptools==0.6c11 Finished processing dependencies for setuptools==0.6c11

ok, have fun.

你可能感兴趣的:(linux,python)