所以我尝试在新服务器上安装 setuptools,所以我得到了
wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
并尝试sh setuptools-0.6c11-py2.7.egg
在文件所在的目录中,我得到
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named setuptools.command.easy_install
我在任何地方都找不到任何调试方法。
当我尝试
import sys
from setuptools.command.easy_install import bootstrap
sys.exit(bootstrap())
我明白了
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named setuptools.command.easy_install
当我进入sys.path
python解释器时,它给了我以下信息:
['', '/opt/python2.7/lib/python27.zip', '/opt/python2.7/lib/python2.7', '/opt/python2.7/lib/python2.7/plat-linux3', '/opt/python2.7/lib/python2.7/lib-tk', '/opt/python2.7/lib/python2.7/lib-old', '/opt/python2.7/lib/python2.7/lib-dynload', '/opt/python2.7/lib/python2.7/site-packages']