I got stuck when I installed pyaudio.
sudo pip install pyaudio
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DMACOSX=1 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/_portaudiomodule.c -o build/temp.macosx-10.12-intel-2.7/src/_portaudiomodule.o
src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
#include "portaudio.h"
^
1 error generated.
error: command 'cc' failed with exit status 1
I am told that portaudio.h cannot be found and it fails. However, the portaudio required by pyaudio is already installed by macport. ..
port list portaudio
portaudio @19.20140130 audio/portaudio
The problem is that pip can't find portaudio for some reason. Make sure it is under the port default / opt / local /
sudo env LDFLAGS="-L/opt/local/lib" CFLAGS="-I/opt/local/include" pip install pyaudio
I was able to install it by directly specifying as.
Recommended Posts