저는 Python2.7을 실행 중이고 명령을 통해 MySQLdb 패키지를 설치하려고하는 Ubuntu 12.04 x64 Server 에디션 VM을 가지고 있습니다 (이미 easy_install
이 설치되어 있고 작동 중입니다).) :python-mysql 패키지를 설치하는 동안 문제가 발생했습니다.
$ sudo easy_install MySQL-python
하지만 easy_install을 컴파일 할 때 나는 다음과 같은 역 추적 오류가 발생합니다 :
Traceback (most recent call last):
File "/usr/local/bin/easy_install", line 9, in <module>
load_entry_point('distribute', 'console_scripts', 'easy_install')()
File "/usr/local/lib/python2.7/dist-packages/setuptools-1.1-py2.7.egg/pkg_resources.py", line 357, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/setuptools-1.1-py2.7.egg/pkg_resources.py", line 2393, in load_entry_point
raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'easy_install') not found
에게 내 /usr/local/lib/python2.7/dist-packages
다음과 같은 패키지가 설치 보여줍니다
- 배포-0.7.3-py2.7.egg
- 쉬운 install.pth에도
- pyinotify-0.9.4-py2.7.egg
- setuptools에-1.1-py2.7.egg
- setuptools.pth
나는 심지어이 오류를 받고 있어요 왜 여기에서 이동하거나 어디서 정말 모르겠어요. 또한이 질문이 ServerFault에 더 적합한 지 여부는 확실하지 않았습니다. 하지만 일부 코드 작업을하면서이 문제에 부딪 았기 때문에 나는 다른 코더가 전에도 그 코드를 실행했다고 생각했습니다 ... (당시 논리적 인 것 같았습니다)