【问题标题】:Failed install after installing Myysql-python安装 Myysql-python 后安装失败
【发布时间】:2014-06-19 02:48:42
【问题描述】:

安装 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

【问题讨论】:

    标签: python mysql mysql-python


    【解决方案1】:

    问题解决了,是 Aptana 没有获取新库的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-14
      • 2021-05-13
      • 2015-02-11
      • 1970-01-01
      • 2019-04-18
      • 2018-12-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多