Python3.7安装pyaudio库报错error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++

时间:2024-05-19 07:50:16
1.报错截图:Python3.7安装pyaudio库报错error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++
2.报错原因:

python3.7不支持直接pip install pyaudio 安装pyaudio库

3.解决方法:

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio下载PyAudio-0.2.11-cp37-cp37m-win_amd64.whl文件
下载完PyAudio-0.2.11-cp37-cp37m-win_amd64.whl之后,进入PyAudio-0.2.11-cp37-cp37m-win_amd64.whl所在目录,再使用pip install PyAudio-0.2.11-cp37-cp37m-win_amd64.whl命令安装pyaudio库
如下图:
Python3.7安装pyaudio库报错error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++
Python3.7安装pyaudio库报错error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++