Nach Fehler erhielt beim Laufen pip install mysql-python
Kann nicht mysql-Python mit Pip auf MacOS 10.12.4
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/b_/xh05hxwd0lzc3rm858jsypdc0000gn/T/pip-build-AWDYaP/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
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/b_/xh05hxwd0lzc3rm858jsypdc0000gn/T/pip-build-AWDYaP/mysql-python/
Ich folgte den Anweisungen in this Post um Setuptools Neuinstallation und ich habe neu installiert Python von https://www.python.org/
installierenwhich -a python
gibt
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
/usr/local/bin/python
/usr/bin/python
Der Fehler seit der Installation von MacOS 10.12.4 aufgetreten zu sein scheint diese aktualisieren
Danke für die Lösung. Das hat mich verrückt gemacht. Eigentlich musste ich sowohl deine als auch die andere Person tun: braue unlink mysql-connector-c und braue install mysql –