почему установка MySQL-python на Mac OS X приводит к выбросу IndexError: строковый индекс вне диапазона - PullRequest
0 голосов
/ 24 декабря 2018

Я пытаюсь установить MySQL-python на мой Mac OS X, но выдает следующую ошибку

$ pip install MySQL-python
Collecting MySQL-python
  Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/43/m1qv9zf53q19sqh6h9kg9pz80000gn/T/pip-install-mThckA/MySQL-python/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "setup_posix.py", line 53, in get_config
        libraries = [ dequote(i[2:]) for i in libs if i.startswith(compiler_flag("l")) ]
      File "setup_posix.py", line 8, in dequote
        if s[0] in "\"'" and s[0] == s[-1]:
    IndexError: string index out of range
...