不支持PyAudio Wheel? [英] PyAudio Wheel is Unsupported?

查看:152
本文介绍了不支持PyAudio Wheel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PyAudio.一段时间以来,这是一个众所周知的问题,当您安装PyAudio时,您无法执行pip install PyAudio,因为它会告诉您找不到portaudio.h.

PyAudio. It's been a well-known problem for a while now that when installing PyAudio, you can't do pip install PyAudio, because it will tell you that it couldn't find portaudio.h.

因此,当您在YouTube上接受印度某人的授课时,您意识到所有视频都说了同样的话:您必须手动安装滚轮(

So, as you go on your journey to be taught by some Indian guy on YouTube, you realize that all the videos say the same thing: you have to manually install the wheel (https://pypi.org/project/PyAudio/#files), by downloading it, then doing pip install <path-to-wheel>.

但是,从2019年9月开始,此方法不再有效.命令提示符将仅告诉您不支持砂轮,没有任何其他信息.到目前为止,我在互联网上找不到任何内容可以告诉您如何在Windows计算机上解决此问题.有什么解决方法吗?

However, as of September 2019, this method no longer works. The command prompt will simply tell you that the wheel is unsupported, without any other information. And so far, there is nothing on the internet that I can find that will tell you how to fix this problem on a Windows machine. Is there some kind of work around?

(Python:3.7.4,Pip:19.2.3)

(Python: 3.7.4, Pip: 19.2.3)

我很快会回到这个问题,但是目前我的桌面坏了.恢复并运行它之后,我将测试评论/答案"部分中的任何建议.

I will get back to this question soon, but my desktop is broken at the moment. Once I get it back up and running, I will test whatever suggestions are in the comments/answers sections.

推荐答案

由于 phd 已发表评论...

As phd already commented...

PyAudio 文档:

当前,有一些轮子与Python 2.7、3.4、3.5和3.6的官方发行版兼容.对于这些版本,可以使用32位和64位数据包.

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.

您正在运行 Python 3.7.4 ,该版本没有没有 wheel ..完全相同的东西在 PyPI 上完全可见:有没有轮子可用于Python版本cp37 .

You are running Python 3.7.4, there is no wheel available for this version. The exact same thing is perfectly visible on PyPI: there is no wheel available for the Python version cp37.

您将不得不选择兼容版本的Python或自己编译 wheel .

You will have to either pick a compatible version of Python or compile the wheel yourself.

如果您喜欢冒险,可以尝试 <pip install 的c4>选项和其他关联的选项.不过我不推荐.

If you feel adventurous, you could try the --python-version option of pip install and the other associated options. I would not recommend it though.

此第三方网站上有一些滚轮:

There are some wheels available on this 3rd party website:

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio

这篇关于不支持PyAudio Wheel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆