參考鏈接:https://stackoverflow.com/questions/33851379/pyaudio-installation-on-mac-python-3
mac 安裝 pyaudio 顯示找不到? ?"portaudio.h" :

解決步驟如下:
xcode-select --install #安裝xcode, 已經(jīng)裝好的的話,執(zhí)行的時(shí)候會(huì)提示
brew remove portaudio? #先卸載
brew install portaudio #重新安裝
sudo pip3 install pyaudio

原因:mac中pyaudio的運(yùn)行需要依賴于portaudio這個(gè)庫。