Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/314.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
pip在linux中安装MySQL python失败_Python_Mysql_Linux_Django_Python 3.4 - Fatal编程技术网

pip在linux中安装MySQL python失败

pip在linux中安装MySQL python失败,python,mysql,linux,django,python-3.4,Python,Mysql,Linux,Django,Python 3.4,我已经创建了一个Django项目,现在我正在尝试使用MySql对其进行配置,因此在Google中搜索并使用了一些方法,但是当我pip安装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 "&

我已经创建了一个Django项目,现在我正在尝试使用MySql对其进行配置,因此在Google中搜索并使用了一些方法,但是当我
pip安装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/
收集MySQL-python 使用缓存的MySQL-python-1.2.5.zip 从命令python setup.py egg_info完成输出: 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 文件“/tmp/pip build lwubgejh/MySQL python/setup.py”,第13行,在 从安装程序\u posix导入获取\u配置 文件“/tmp/pip build lwubgejh/MySQL python/setup_posix.py”,第2行,在 从ConfigParser导入SafeConfigParser ImportError:没有名为“ConfigParser”的模块 ---------------------------------------- 命令“python setup.py egg_info”在/tmp/pip build lwubgejh/MySQL python中失败,错误代码为1/ 找不到此错误的任何解决方案:
命令“python setup.py egg\u info”失败,在/tmp/pip build lwubgejh/MySQL python/


谢谢您的帮助。

此库与Python 3不兼容。请按照安装mysqlclient。

此库与Python 3不兼容。按照说明安装mysqlclient