Impossible d'installer pyaudio, erreur gcc
Essayer d'installer pyaudio avec des instructions par ici:
$ git clone http://people.csail.mit.edu/hubert/git/pyaudio.git
$ cd pyaudio
$ sudo python setup.py install
running install
running build
running build_py
running build_ext
building '_portaudio' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-2.7/src/_portaudiomodule.o
In file included from /usr/include/python2.7/Python.h:8:0,
from src/_portaudiomodule.c:28:
/usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
/usr/include/features.h:215:0: note: this is the location of the previous definition
src/_portaudiomodule.c:29:23: fatal error: portaudio.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Ce qui ne va pas dans mon installation?
source d'informationauteur Mittenchops
Vous devez vous connecter pour publier un commentaire.
Désolé pour la réponse inappropriée dernière fois, je vais poster la solution de la question. Il peut être de l'aide pour la distribution ubuntu.
Nous avons d'abord besoin d'installer portaudio module
sudo apt-get install libasound-dev
Télécharger portaudio de http://portaudio.com/download.html
tar-zxvf [portaudio.tgz]
Entrer dans le répertoire ./configure && make
sudo make install
sudo pip install pyaudio
Vérifier la version de pyaudio, il devrait être 0.2.9
Sur Ubuntu:
ou
Cela a fonctionné pour moi:
Pour Centos7: