Question

My system is Mac OS 10.8.2, Python 2.7.3, Xcode 4.5.1.

I am trying to import pyaudio in python. import pyaudio gives Please build and install the PortAudio Python bindings first. Considering the error was due to unavailability of portaudio.

I installed portaudio using brew install portaudio successfully. Here is a screenshot of the site-packages folder.enter image description here

But import pyaudio still results in Please build and install the PortAudio Python bindings first. While import _portaudio gives no matching architecture in universal wrapper enter image description here

How do I sucessfully import pyaudio in Python?

Was it helpful?

Solution

  1. Have both PortAudio and PyAudio removed if you got any of them installed inititally
  2. In the terminal, brew install portaudio
  3. easy_intall pyaudio

I got all my errors removed

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top