Ich bin auf OSX El Capitan, mit Python 2.7 (Anaconda). Starten des Befehls pip install MySQL-python
ergibt:'pip install MySQL-python' schlägt mit 'IndexError' fehl
Collecting MySQL-python
Using cached 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/d2/gd004m2s35z5dlyz9mfn6sc40000gn/T/pip-build-FYvb_T/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
Keine von diesen war (Ausgang mit dem gleichen Fehler).
pip install mysqlclient
easy_install MySQL-python
pip
ist up-to-date. Ich habe im Grunde versucht, allen Vorschlägen in verwandten Fragen zu folgen, aber keiner ist erfolgreich. Jede Hilfe wird geschätzt, danke!
Wissen Sie, wo ich die entsprechende Bibliothek für OSX finden kann? 'brew install mysql' hat leider nichts geändert. – mommi84