我尝试通过运行以下命令来安装 pyaudio(尝试使用 pip 和 easy_install)
brew install portaudio
[pip or easy_install command]
sudo pip install pyaudio
sudo easy_install pyaudio
但是,当我在 python inerpreter 中运行 import _portaudio 时,它给了我这个
>>> import _portaudio
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.7/site-packages/PyAudio-0.2.7-py2.7-macosx-10.8-intel.egg/_portaudio.so, 2): Symbol not found: _PaMacCore_SetupChannelMap
Referenced from: /Library/Python/2.7/site-packages/PyAudio-0.2.7-py2.7-macosx-10.8-intel.egg/_portaudio.so
Expected in: flat namespace
in /Library/Python/2.7/site-packages/PyAudio-0.2.7-py2.7-macosx-10.8-intel.egg/_portaudio.so