2012-10-17 39 views
3

我的系統是Mac OS 10.8.2,Python 2.7.3,Xcode 4.5.1。_portaudio.so:通用包裝中沒有匹配的體系結構

我想在python中使用import pyaudioimport pyaudio給出Please build and install the PortAudio Python bindings first。考慮到錯誤是由於portaudio不可用。

我安裝了portaudio,使用brew install portaudio成功。以下是site-packages文件夾的屏幕截圖。 enter image description here

import pyaudio仍然導致Please build and install the PortAudio Python bindings first。 雖然import _portaudiono matching architecture in universal wrapper enter image description here

我如何成功地import pyaudio在Python?

+1

我敢打賭,有人如果你在這裏沒有得到答案,在郵件列表上可以提供幫助。 –

+0

我確實發過一封郵件,但沒有收到任何來自PA團隊的郵件。如果你不介意可以告訴我如何在Mac OS 10.8.2,Python 2.7.3和Xcode 4.5.1中導入speex。我做了'brew install -v speex',它自己做了一些安裝,但在'Python'中它仍然報告'ImportError:沒有名爲speex的模塊 – VeilEclipse

+0

不幸的是,我不知道。我希望名單上的人會(我不記得你的電子郵件):( –

回答

1
  1. 有PortAudio和PyAudio都刪除,如果你有其中的任何inititally安裝
  2. 在終端,brew install portaudio
  3. easy_intall pyaudio

我得到了我所有的錯誤刪除