2017-03-09 2 views
1

J'ai un problème. Je ne peux pas installer MysqlDB.Impossible d'installer MysqlDB sur centos Python2.7

OS: CentOs6.8 x64 Python: 2.7.6

pip2.7 install mysql-python 

pip install mysql-python 

Ceci est mon erreur:

commande « -u -c /usr/local/bin/python2.7 "import setuptools, tokenize; fichier = '/ tmp/pip-build-rgqmTQ/mysql-python/setup.py'; f = getattr (tokenize, 'ouvert', ouvert) (fichier); code = f.read(). remplacer ('\ r \ n', '\ n'); f.close (compiler (code, fichier, 'exec')) "installer --record/tmp/pip-G4kWRa- enregistrement/install-record.txt --single-version externe gérés --compile » a échoué avec le code d'erreur 1 dans/tmp/pip-build-rgqmTQ/mysql-python/

Répondre

1

Essayez cette dind.biz

# yum install python-devel mysql-devel 

# pip install mysql-python 
+0

OUI !!!!! Cela a marché !!!! Est-ce que yum a installé mysql-devel puis a-t-il installé pip2.7 mysql-python et ça a marché !!! Huzzah !!! Et il y avait beaucoup de joie! –