在OSX上为Python 2.7安装MySQLdb会产生IndexError

时间:2018-03-23 12:57:04

标签: python macos mysql-python

我正在尝试在python 2.7中安装MySQLdb,它在运行setup.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

有谁知道我在这里失踪了什么?

0 个答案:

没有答案