Windows上Python3.7安装pyaudio

习惯了用pip安装python模块的人,今天试了一下安装pyaudio。首先看官网,What?Windows上Python3.7安装pyaudio_第1张图片

当时安装anaconda tensorflow时候,已经把python升级到3.7,现在用pip安装pyaudio还不支持3.7.

如果你用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就能够安装成功

 

转自:https://blog.csdn.net/weixin_43038622/article/details/84304620

你可能感兴趣的:(Windows上Python3.7安装pyaudio)