pyAudio failed to install : Windows 10

戏子无情 提交于 2019-12-02 02:58:32

Try this:

pip install pipwin
pipwin install pyaudio

pipwin is like pip, but it installs precompiled Windows binaries provided by Christoph Gohlke. Saves you a lot of googling and manual downloading.

According to official docs of pyaudio:

Microsoft Windows

Install using pip:

python -m pip install pyaudio

Notes: pip will fetch and install PyAudio wheels (prepackaged binaries). Currently, there are wheels compatible with the official distributions of Python 2.7, 3.4, 3.5, and 3.6. For those versions, both 32-bit and 64-bit wheels are available.

You try to install pyaudio for 3.7, so it try to compile it. Download and install wheel from Gohlke - Unofficial Windows Binaries for Python Extension Packages. Wheels for 32 and 64-bit python 3.7 are available.

Omid Attarnezhad

I had the same issue but it solved by using WHL file which you can download it from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio.

There are several versions that you can download and use it like PyAudio-0.2.11-cp37-cp37m-win_amd64.whl.

For installing purposes on command prompt write "pip install "path"\PyAudio-0.2.11-cp37-cp37m-win_amd64.whl".

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!