Probleme installation MySQLdb
Utilisateur anonyme
-
Utilisateur anonyme -
Utilisateur anonyme -
Bonjour, Je n'arrive pas a installer MySQLdb , il me renvoi toujours une erreur qui est fatal a l'installation , quand je fait la commande python setupd.py install ainsi que pour build juste avant !
sh: mysql_config: not found
sh: mysql_config: not found
sh: mysql_config: not found
sh: mysql_config: not found
running install
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-i686-2.7/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-i686-2.7/_mysql.o -Dversion_info="(1,2,1,'final',1)" -D__version__="1.2.1"
In file included from _mysql.c:29:0:
pymemcompat.h:10:20: fatal error: Python.h: Aucun fichier ou dossier de ce type
compilation terminated.
error: command 'gcc' failed with exit status 1
sh: mysql_config: not found
sh: mysql_config: not found
sh: mysql_config: not found
sh: mysql_config: not found
running install
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-i686-2.7/MySQLdb
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-i686-2.7/_mysql.o -Dversion_info="(1,2,1,'final',1)" -D__version__="1.2.1"
In file included from _mysql.c:29:0:
pymemcompat.h:10:20: fatal error: Python.h: Aucun fichier ou dossier de ce type
compilation terminated.
error: command 'gcc' failed with exit status 1
6 réponses
-
Soit les librairies Python ne sont pas installées (Package pythonX.X-dev, X.X est la version), soit le programme de compilation ne va pas chercher les lib au bon endroit.
Tu as bien installé les lib de dev Python? -
Installer ou compiler? QUelle distrib?
-
Je travaille habituellement , sur debian , bien que la je soit sur Ubuntu
Seulement , installation , c'est une API en python , destiner a l'utilisation de MYSQL en python .
J'ai besoin , de l'utiliser assez rapidement !
Merci de votre compréhension ,
Cordialement ! -
Bon c'est pas grave , j'ai utiliser synaptic , je voit pas ce qui ne fonctionne pas habituellement , quand je l'install sur Debian , j'ai jamais eu de problème ...
-
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question -
Boh pas grave , je verrait sur quoi ça a merder , plus tard , oui j'ai installer les lib de dev de python ...
-
Est-ce que le fichier Python.h se trouve dans : /usr/include/python2.7
-
-
-
-
Boh , tkt pas , il m'est utiles actuellement pour coder mon source , :p vue que je suis déplacement , je n'ai pas accès a mes ordinateurs habituel
Je comprend , que pour compiler une lib , je vais avoir besoin des sources ^^ , je vais pas passer du binaire en binaire :p , si tu veut ont peut se lancer dans un projet foireux dans , le genre :p
2 zigoto s'amuse , a développer un logiciel , qui compile ce qui a déjà été compiler :p
Sinon , tu compile toute t'es source python ??
Encore les fichier en C C++ , je veut bien ! -
-