Comment installer MySQL-python par le pip?

venv/bin/pip install MySQL-python
Collecting MySQL-python
  Downloading MySQL-python-1.2.5.zip (108kB)
    100% |████████████████████████████████| 112kB 1.2MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/1j/pb3h7_hn4490px72_f8mntd00000gn/T/pip-build-o66zhy67/MySQL-python/setup.py", line 13, in <module>
        from setup_posix import get_config
      File "/private/var/folders/1j/pb3h7_hn4490px72_f8mntd00000gn/T/pip-build-o66zhy67/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 /private/var/folders/1j/pb3h7_hn4490px72_f8mntd00000gn/T/pip-build-o66zhy67/MySQL-python/

Je suis en train d'installer MySQL-python par le pip, mais il l'a jeté au-dessus d'erreur. Quelqu'un peut-il aider?

J'ai vérifié cette page Comment faire pour installer Python module MySQLdb utilisation de pip? mais cela n'aide pas vraiment.

C'est python3.5 dans mon virtualenv dossier.

Par votre commentaire "C'est python3.5 dans mon virtualenv dossier" suis-je supposer que vous faites cela sur certains virtual box? Quel système d'exploitation utilisez-vous? Faire une recherche Google pour "python setup.py egg_info a échoué avec le code d'erreur 1" a révélé ce DONC, la question
Je ne le fais pas sur virtual box. virtualenv est un outil pour créer isolé Python environnements

OriginalL'auteur Haifeng Zhang | 2016-11-09