python3.7安装pyaudio

时间:2024-03-20 22:54:01

使用python3.7.3,anaconda环境安装pyaudio。
pip install pyaudio
报如下错误信息
python3.7安装pyaudio
然后参考博客:https://blog.csdn.net/a506681571/article/details/85201279,解决问题。
具体就是先下载pyaudio的whl文件,地址:https://github.com/intxcc/pyaudio_portaudio/releases
然后,切换到下载的目录下面;·
执行 pip install PyAudio-0.2.11-cp37-cp37m-win_amd64.whl
然后import pyaudio验证;

python3.7安装pyaudio
没有报错说明安装成功。