cmd下pip安装mysql_pip安装MySQLpython
我正在嘗試在macos上安裝MySQLdb for Python。
當(dāng)我用數(shù)字pip install MySQL-pythonshell返回到這個(gè)值時(shí):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 "", line 1, in
File "/private/var/folders/9h/2lp9kx993ygbrfk1lxr0sz500000gq/T/pip-install-7xyyBe/MySQL-python/setup.py", line 17, in
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/9h/2lp9kx993ygbrfk1lxr0sz500000gq/T/pip-install-7xyyBe/MySQL-python/
我能做什么?我到處找,但找不到答案。
(我安裝了Python2.7)
總結(jié)
以上是生活随笔為你收集整理的cmd下pip安装mysql_pip安装MySQLpython的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: ae一个合成的图层怎么拷贝到另一个合成里
- 下一篇: mysql反模式_MongoDB报表实例