如果你用pip install pyaudio
提示error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”:
所以这时候,你只需要下载pyaudio对应的whl,地址如下:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
cp37代表python版本号3.7,amd64代表64位
下载完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就能够安装成功
1