title: Python PyAudio installation problems (with PortAudio)
body: <p>I'm trying to write a program to record information from my computers microphone an save it to a file. <code>PyAudio</code> seems like one of the better packages for doing this, and they even have a binary for Windows 7 (Python 2.7). I downloaded the executable file and ran it to set up PyAudio, but when I try to import PyAudio into a python script now I get an error:</p>
  
  <pre><code>Please build and install the PortAudio Python bindings first.
  
  Traceback (most recent call last):
    File "&lt;pyshell#0&gt;", line 1, in &lt;module&gt;
      import pyaudio
    File "C:\Python27\lib\site-packages\pyaudio.py", line 103, in &lt;module&gt;
      sys.exit(-1)
  SystemExit: -1
  </code></pre>
  
  <p>If I look at pyaudio.py, the code that it's failing on is:</p>
  
  <pre><code># attempt to import PortAudio
  try:
      import _portaudio as pa
  except ImportError:
      print "Please build and install the PortAudio Python " +\
            "bindings first."
      sys.exit(-1)
  </code></pre>
  
  <p>Also, in case it's relevant, if I go to <code>Python27\Lib\site-packages</code> (where pyaudio.py is) there is a file called <code>portaudio_x64.dll</code>.</p>
  
  <p>The documentation on their site only seems to have instructions for if you want to install PyAudio by building from source code. Additionally, it says that PortAudio v19 is included in the binary, so I assumed it would just work after running the setup executable.</p>
  
  <p>I have no idea what's going wrong and I really need this running soon. Any ideas on what's going wrong? Or if anyone has recommendations for similar packages that work better specifically with Windows 7 (64-bit) and Python 2.7 (Enthought distribution), as well as cross-platform, I'd love to hear them.</p>