繁体   English   中英

在Linux中pip安装MySQL-python失败

[英]pip install MySQL-python failed in linux

我已经创建了一个Django项目,并且现在也可以正常使用MySql进行配置,因此在Google中进行了搜索,并做了一些方法,但是当我pip install MySQL-python时,会出现以下问题:

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 "/tmp/pip-build-lwubgejh/MySQL-python/setup.py", line 13, in <module>
    from setup_posix import get_config
  File "/tmp/pip-build-lwubgejh/MySQL-python/setup_posix.py", line 2, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lwubgejh/MySQL-python/

找不到此错误的任何解决方案: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-lwubgejh/MySQL-python/

谢谢你的帮助。

该库与Python 3不兼容。请按照Django文档中建议安装mysqlclient。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM