How do I install PyAudio on Python 3.7?

2020-02-05 04:30发布

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

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

I have already tried to modify the PATH but it doesn't worked. I though maybe someone could help me ? Thank you :)

8条回答
对你真心纯属浪费
2楼-- · 2020-02-05 05:30

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>
pip install PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl
查看更多
啃猪蹄的小仙女
3楼-- · 2020-02-05 05:31

WINDOWS

  1. pip install pipwin
  2. pipwin install pyaudio

This will install pyaudio

查看更多
登录 后发表回答