66 votes

Pourquoi ne peut-easy_install trouver MySQLdb?

C'est ce que j'ai essayé:

$ easy_install-2.6 -d /home/user/lib/python2.6 MySQLdb  
Searching for MySQLdb  
Reading http://pypi.python.org/simple/MySQLdb/  
Couldn't find index page for 'MySQLdb' (maybe misspelled?)  
Scanning index of all packages (this may take a while)  
Reading http://pypi.python.org/simple/  
No local packages or download links found for MySQLdb  
error: Could not find suitable distribution for Requirement.parse('MySQLdb')  

143voto

bernie Points 44206

Vous avez tort le nom du package.

MySQL-python est la bonne:

easy_install MySQL-python

ou

pip install MySQL-python

8voto

Jeff Bond Points 82

Adam est un droit, mais avant de vous lancer easy_install MySQL-python vous devez assurez - python-dev est installé comme il n'est pas installé par défaut.

Installer est avec apt-get install python-dev.

5voto

Adam Points 51

Si vous êtes à l'aide de "yum" la commande est - sudo yum install python-devel (où 'sudo' peut être facultatif, en fonction de votre compte d'utilisateur)

Prograide.com

Prograide est une communauté de développeurs qui cherche à élargir la connaissance de la programmation au-delà de l'anglais.
Pour cela nous avons les plus grands doutes résolus en français et vous pouvez aussi poser vos propres questions ou résoudre celles des autres.

Powered by:

X