安装MySQLdb时出错

时间:2016-05-24 13:47:21

标签: python mysql django

我运行以下命令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-_79w9z_b/MySQL-python/setup.py", line 13, in <module>
        from setup_posix import get_config
      File "/tmp/pip-build-_79w9z_b/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-_79w9z_b/MySQL-python/

0 个答案:

没有答案
相关问题