Install Python PyAudio on Windows problems when importing PortAudio V19

I am trying to install PyAudio for an application for recording audio clips from microphone input. I installed PyAudio from an executable (Windows 7, python 2.6). However, when I try to import this library into my code, I get the following error.

Please build and install the PortAudio Python bindings first.

I tried the solution indicated in the problems with installing Python PyAudio (using PortAudio) , but I received the following error message when I installed it using the executable file specified at http://www.lfd.uci.edu/~gohlke / pythonlibs / # pyaudio

Traceback (most recent call last):
  in <module>
    import pyaudio
  File "C:\Python26\lib\site-packages\pyaudio.py", line 99, in <module>
    import _portaudio as pa
ImportError: DLL load failed: %1 is not a valid Win32 application.

I tried creating PortAudio v19 , but that also did not work for me. I am stuck at this point and I will appreciate any help in this regard.

+1
1

. .

brew install portaudio

portaudio

pip install python-pyaudio
0

All Articles