
error: command 'xcrun' failed with exit status 1 - ERROR: Failed building wheel for pyaudio
INSTALL PYAUDIO FOR PYTHON IN MAC INSTALL
I found that I need PortAudio, so installed it with brew: brew install portaudioīut pip install pyaudio still doesn't work and I get the below error message:ĮRROR: Command errored out with exit status 1: command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import sys, setuptools, tokenize sys.argv = '"'"'/private/var/folders/12/44t6pktj77xbqmyp7x368tdr0000gn/T/pip-install-gvxfbjmp/pyaudio/setup.py'"'"' file='"'"'/private/var/folders/12/44t6pktj77xbqmyp7x368tdr0000gn/T/pip-install-gvxfbjmp/pyaudio/setup.py'"'"' f=getattr(tokenize, '"'"'open'"'"', open)( file) code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"') f.close() exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/12/44t6pktj77xbqmyp7x368tdr0000gn/T/pip-wheel-gvmpobvy cwd: /private/var/folders/12/44t6pktj77xbqmyp7x368tdr0000gn/T/pip-install-gvxfbjmp/pyaudio/ Complete output (16 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.14-x86_64-3.7 copying src/pyaudio.py -> build/lib.macosx-10.14-x86_64-3.7 running build_ext building '_portaudio' extension creating build/temp.macosx-10.14-x86_64-3.7 creating build/temp.macosx-10.14-x86_64-3.7/src xcrun -sdk macosx clang -arch x86_64 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/amework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/amework/Versions/3.7/Headers -DMACOSX=1 -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/amework/Versions/3.7/include/python3.7m -c src/_portaudiomodule.c -o build/temp.macosx-10.14-x86_64-3.7/src/_portaudiomodule.o src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found #include "portaudio.h" ^~~~~~~~~~~~~ 1 error generated. As a result, you will be able to successfully install pyaudio is.But that didn't work. On which you specify the location of the installed library and include files in the brew as follows pip install pyaudioto run the. Src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not foundĮrror: command 'clang' failed with exit status 1


INSTALL PYAUDIO FOR PYTHON IN MAC CODE
errorĬomplete output from command /Users/mayfair/Documents/development/python-docs-samples/speech/grpc/env/bin/python3.5 -u -c "import setuptools, tokenize _file_ =getattr '/private/var/folders/1n/gqy2kcyn1j95_cb2vjxr3l2w0000gn/T/pip-build-iwktd6rr/pyaudio/setup.py' tokenize, f = (, open 'open' )( ) _file_ code = () (f.read '\r\n'.replace '\n', )f.close () execcompile ( (code, _file_, 'exec' )) " bdist_wheel -d /var/folders/1n/gqy2kcyn1j95_cb2vjxr3l2w0000gn/T/tmpq4e0nbhhpip-wheel-python-tag cp35:Ĭreating build/lib.macosx-10.11-x86_64-3.5Ĭopying src/pyaudio.py -> build/lib.macosx-10.11-x86_64-3.5Ĭreating build/temp.macosx-10.11-x86_64-3.5Ĭreating build/temp.macosx-10.11-x86_64-3.5/srcĬlang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/Xcode.app/Contents/Developer/Platforms/atform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DMACOSX=1 -I/usr/local/Cellar/python3/3.5.1/Frameworks/amework/Versions/3.5/include/python3.5m -c src/_portaudiomodule.c -o build/temp.macosx-10.11-x86_64-3.5/src/_portaudiomodule.o

Running setup.py bdist_wheel for pyaudio. Building wheels for collected packages: pyaudio
