How do I install PyAudio on Python 3.7?

It is supported in Python 3.7. Even though not officially on standalone 3.7, Anaconda 2019.10 which uses 3.7 has it. So you have 2 options:

  1. You can conda install -c anaconda pyaudio, if you use Anaconda
  2. Or for standalone Python 3.7 you can:

2a) After installing the .whl, build portaudio.dll just following the instructions at http://portaudio.com/docs/v19-doxydocs/compile_windows.html. I used VS2019 and i worked. Note if you choose ASIO option you will need ASIO SDK from https://www.steinberg.net/en/company/developers.html

After that just put portaudio.dll anywhere in your system path or local directory and you can import pyaudio.

2b) If you don't want to build, simply steal portaudio.dll from Anaconda. It's in <Anaconda_root>/Library/bin


Download the wheel on this site https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio.

Choose PyAudio‑0.2.11‑cp37‑cp37m‑win32.whl if you use 32 bit, or PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl for 64 bit. Then go to your download folder:

cd <your_donwload_path>

Then, for 64 bit:

pip install PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl

or for 32 bit:

pip install PyAudio‑0.2.11‑cp37‑cp37m‑win32.whl

WINDOWS

  1. pip install pipwin
  2. pipwin install pyaudio

This will install pyaudio


It's not compatible with 3.7 and as far as I have been able to find thus far there doesn't appear to be any work being put into making it compatible and I haven't found any sort of replacement, so unless you want to build the package yourself and make it compatible with 3.7 then it can't be used without downgrading your python install to 3.6, I did try Hiadore's answer and that does not work either with 3.7.