如何在 Python 3.7 上安装 PyAudio? [英] How do I install PyAudio on Python 3.7?
问题描述
我目前正在尝试在 Python 3.7 上安装 PyAudio,但是当我使用命令pip install pyaudio"时,出现错误消息:
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".
我已经尝试修改 PATH 但它不起作用.我想也许有人可以帮助我?
I have already tried to modify the PATH but it doesn't work. I thought maybe someone could help me?
推荐答案
在本网站下载轮子 https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio.
如果您使用 32 位,请选择 PyAudio‑0.2.11‑cp37‑cp37m‑win32.whl
,或者 PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl
> 64 位.然后转到您的下载文件夹:
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>
然后,对于 64 位:
Then, for 64 bit:
pip install PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl
或 32 位:
pip install PyAudio‑0.2.11‑cp37‑cp37m‑win32.whl
这篇关于如何在 Python 3.7 上安装 PyAudio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!