简体   繁体   中英

PyAudio will NOT install

I've been trying to install PyAudio for a speechrecognition project but for everything I've tried nothing has worked. I tried to install with the latest version of python (3.7) only to noobishly find out that pyaudio isnt compatible with that yet and now im trying with 3.4.

However, whenever I run 'pip install PyAudio' I get an error message saying 'error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).' I have Microsoft Visual C++ 10.0 installed but it just doesn't work.

I'm at my wits end here please help.

(Running Windows 8.1 btw)

一个很好的网站要知道的是Christoph Gohlke的页面“用于Windows的Python扩展包”, 网址https://www.lfd.uci.edu/~gohlke/pythonlibs/

我最后通过下载不同版本的python来解决我自己的问题,对我有用的是Python 3.6.5rc1(但任何3.6版本似乎都有用)(在这里找到: https ://www.python.org/downloads / release / python-365rc1 / )我不知道为什么这个工作的全部细节,因为我不是最好的这种东西但它工作当我重试python -m pip install pyaudio (这安装了pyaudio成功)

First upgrade pip to pi3 using following command:

pip3 install --upgrade setuptools pip

and then try with

pip3 install pyaudio

It will install but old versions PyAudio-0.2.11.tar.gz, PyAudio-0.2.11-cp36-cp36m-win_amd64.whl, PyAudio-0.2.11-cp36-cp36m-win_amd64.whl, not support to python 3.7 and after it

Download file from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio , get the file for your Python version and bitness. Paste the file of interest in location "C:\\Users\\YOUR_USER_NAME"

Install it with pip install filename.whl

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM