2014-06-19 3 views
0

MySQLdb-python을 설치 한 후 MySQLdb를 사용하는 데 문제가 있습니다. 내가 지침을 따랐다. 내가 빌드를 지우고 계란을 지우고 my_config를 수정 한 다음 설치를 다시 실행 한 지침을 따랐다. 나는 또한 아직도 64 비트 버전Myysql-python 설치 후 설치 실패

Traceback (most recent call last): 
    File "/Users/nick.leclair/Documents/Aptana Studio 3 Workspace/Tester/driveByScript.py",  line 1, in <module> 
import MySQLdb 
File "build/bdist.macosx-10.9-intel/egg/MySQLdb/__init__.py", line 19, in <module> 
File "build/bdist.macosx-10.9-intel/egg/_mysql.py", line 7, in <module> 
File "build/bdist.macosx-10.9-intel/egg/_mysql.py", line 4, in __bootstrap__ 
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 882, in resource_filenameself, resource_name 
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1351, in get_resource_filename self._extract_resource(manager,self._eager_to_zip(name)) 
File  "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1382, in _extract_resource outf, tmpnam = _mkstemp(".$extract", dir=os.path.dirname(real_path)) 
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2576, in _mkstemp 
from tempfile import mkstemp 
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py",  line 35, in <module> 

ImportError: cannot import name Random 

답변

0

문제가 해결 행운을 설치했는데, 그것은 Aptana를 새로운 라이브러리를 따기하지에 문제가 있었다.