安装Mysql-python后安装失败

时间:2014-06-19 02:48:43

标签: python mysql mysql-python

安装MySQLdb-python后使用MySQLdb的问题。我按照说明我按照删除构建的指令删除了鸡蛋然后修改my_config然后再次运行安装。我也试过安装64位版本仍然没有运气

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

1 个答案:

答案 0 :(得分:0)

问题解决了,Aptana没有拿起新图书馆的问题。