在OSX上安装MySQLdb for Python 2.7会产生索引

2024-09-27 17:39:04 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在Python2.7中安装MySQLdb,运行时出现以下错误设置.py文件

Traceback (most recent call last):
  File "setup.py", line 16, in <module>
    metadata, options = get_config()
  File "/Users/hhamza/Desktop/MySQL-python-1.2.2/setup_posix.py", line 53, in get_config
    libraries = [ dequote(i[2:]) for i in libs if i.startswith(compiler_flag("l")) ]
  File "/Users/hhamza/Desktop/MySQL-python-1.2.2/setup_posix.py", line 7, in dequote
    if s[0] in "\"'" and s[0] == s[-1]:
IndexError: string index out of range

有人知道我错过了什么吗?你知道吗


Tags: inpyconfiggetifsetuplinemysql

热门问题