2014-06-19 242 views
0

安裝MySQLdb-python後使用MySQLdb時出現問題。我按照指示操​​作,按照指示刪除構建並刪除egg,然後修改my_config,然後再次運行安裝。我也嘗試安裝64位版本仍然沒有運氣安裝MySQL後python安裝失敗-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沒有拿起新庫的問題。