mac 安装pyaudio报错

pip install pyaudio
报错说缺少:portaudio.h
解决办法:
pip install --global-option=‘build_ext’ --global-option=’-I/usr/local/include’ --global-option=’-L/usr/local/lib’ pyaudio

参考:https://www.jianshu.com/p/7f81e851df25
它的参考来源 http://stackoverflow.com/questions/33513522/when-installing-pyaudio-pip-cannot-find-portaudio-h-in-usr-local-include

你可能感兴趣的:(mac 安装pyaudio报错)