2014-06-19 183 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没有拿起新库的问题。