[英]Trying to install pyaudio using pip
I try to install pyaudio in pycharm, and 我尝试在pycharm中安装pyaudio,并且
I get this error
我得到这个错误
error: command 'C:\\\\Program Files (x86)\\\\Microsoft Visual Studio 14.0\\\\VC\\\\BIN\\\\cl.exe' failed with exit status 2
I used pip install pyaudio
command. 我用了
pip install pyaudio
命令。
Copy comment:
复制评论:
PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl
PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl
try to install it using this command 尝试使用此命令安装它
pip install PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64
but it does not work and get this error 但它不起作用并出现此错误
ERROR: Could not find a version that satisfies the requirement PyAudio-0.2.11-cp37-cp37m-win_amd64 (from versions: none)
ERROR: No matching distribution found for PyAudio-0.2.11-cp37-cp37m-win_amd64
Try this: 尝试这个:
pip install pipwin
pipwin install pyaudio
pipwin is like pip, but it installs precompiled Windows binaries provided by Christoph Gohlke. pipwin就像pip一样,但是它安装了Christoph Gohlke提供的预编译的Windows二进制文件。 Saves you a lot of manual googling and downloading.
为您节省大量手动搜索和下载。
Maybe this is not a solution to your error, but it is one of the easiest ways to install it on Windows. 也许这不能解决您的错误,但这是在Windows上安装它的最简单方法之一。
You can simply grab the proper Wheel package based on current Python version from here and then install it with pip install <PyAudio‑0.2.11-...>
. 您可以从此处简单地获取基于当前Python版本的适当Wheel软件包,然后使用
pip install <PyAudio‑0.2.11-...>
。 Also, there is no need to have MSVC installed. 另外,也不需要安装MSVC。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.