How do I install PyAudio on Python 3.7?

Cyrielle Albert picture Cyrielle Albert · Mar 5, 2019 · Viewed 44k times · Source

I am currently trying to install PyAudio on Python 3.7 but when I use the command "pip install pyaudio", an error message appears:

  "command 'cl.exe' failed: No such file or directory".

I have already tried to modify the PATH but it doesn't work. I thought maybe someone could help me?

Answer

Hiadore picture Hiadore · Mar 5, 2019

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