[英]Portaudio C++ bindings: symbol not found in MemFunCallbackStream
[英]PortAudio Symbol not found: _PaMacCore_SetupChannelMap on Mountain Lion
我嘗試通過運行以下命令安裝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
您的路徑設置是否正確找到端口音頻DLL文件? 依賴性是否已經出現:pyPortAudio / fastaudio還是需要單獨安裝?
順便說一句:這可能會或可能不符合您的要求,但您是否考慮過使用scipy.io.wavfile?
import scipy.io.wavfile
fs1, y1 = scipy.io.wavfile.read(filename)
我從使用apple的python轉到使用macports python27,然后安裝了pyaudio。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.