Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install PyAudio on Python 3.7?

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?

like image 859
Cyrielle Albert Avatar asked Mar 05 '19 08:03

Cyrielle Albert


People also ask

Which version of Python is suitable for PyAudio?

If you want to use PyAudio , it is best to download python version 3.6.

Is there any alternative for PyAudio?

simpleaudio is strongly recommended, but pyaudio , ffplay , and avplay are alternative options.


2 Answers

WINDOWS

  1. pip install pipwin
  2. pipwin install pyaudio

This will install pyaudio

like image 149
Joljas Kerketta Avatar answered Oct 04 '22 02:10

Joljas Kerketta


Use this link to download .whl file according to the python version it supports. For Python -3.7 use PyAudio‑0.2.11‑cp37‑cp37m‑win32.whl

Go and run this command on the Windows command prompt:

pip install PyAudio-0.2.11-cp37-cp37m-win32.whl
like image 38
Shristi Bisht Avatar answered Oct 04 '22 00:10

Shristi Bisht