简体   繁体   English

如何安装pyaudio?

[英]How to install pyaudio?

My python version version is 3.9.0我的python版本版本是3.9.0

I tried to install pyaudio but I get an error message.我尝试安装pyaudio ,但收到一条错误消息。

I went to try a few different versions from an unofficial website, but none of them worked.我去一个非官方网站尝试了几个不同的版本,但都没有奏效。

Every time I get an error msg that says:每次我收到一条错误消息,上面写着:

ERROR: Could not find a version that satisfies the requirement PyAudio-0.2.11-cp36-cp36m-win_amd64 (from versions: none)错误:找不到满足 PyAudio-0.2.11-cp36-cp36m-win_amd64 要求的版本(来自版本:无)

ERROR: No matching distribution found for PyAudio-0.2.11-cp36-cp36m-win_amd64错误:找不到 PyAudio-0.2.11-cp36-cp36m-win_amd64 的匹配分布

this is there not any pyaudio version for python 3.9.0这是 python 3.9.0 的任何 pyaudio 版本

The message is pretty clear.信息很清楚。 PyPI does not yet have a Python 3.9 version of pyaudio . PyPI 还没有 pyaudio 的pyaudio 3.9 版本。 Christoph Gohlke's site https://www.lfd.uci.edu/~gohlke/pythonlibs does. Christoph Gohlke 的网站https://www.lfd.uci.edu/~gohlke/pythonlibs确实如此。 I downloaded it from there and it works.我从那里下载了它,它可以工作。 If it didn't work for you then you should show the pip command you issued and not just the error message you got.如果它对您不起作用,那么您应该显示您发出的pip命令,而不仅仅是您收到的错误消息。 I used the command line我使用了命令行

pip install D:\Users\BoarGules\Downloads\PyAudio-0.2.11-cp39-cp39-win_amd64.whl

Maybe you were expecting pip to know where the downloaded wheel was, without being told where to look?也许您期望pip知道下载的轮子在哪里,而没有被告知去哪里看?

And if you want to install pyaudio for Python 3.9 then it won't help to use a wheel named PyAudio-0.2.11-cp36-cp36m-win_amd64.whl : the Python version is embedded in the filename and it says 3.6 not 3.9, so try again with the right file.如果您想为 Python 3.9 安装pyaudio ,那么使用名为PyAudio-0.2.11-cp36-cp36m-win_amd64.whl将无济于事:Python.6 版本未嵌入文件名中所以用正确的文件再试一次。

try this尝试这个

pip install pipwin

then然后

pipwin install pyaudio

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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