我想将 Qt5 和 QtQuick2 与 PyQt 等绑定(bind)一起使用,但似乎 PyQt 唯一可用的版本是 Python 3.3。是否有任何可以与 Python 2.7 一起使用的绑定(bind)?
最佳答案
我假设您正在谈论 Windows 的二进制安装程序。 PyQt5的维护者有made it very clear他不会为 PyQt5/Python2 提供它们:
>>> Are there any Windows binary installers for PyQt5 and Python 2.7?
>>
>> No, and I don't intend to provide any.
>
> Thanks. Any particular reason?
Incompatibilities between dependencies and compiler versions - there would be no support for QtWebKit.
I'm trying to limit the total number of installer I maintain.
I'm doing my bit to encourage people to move to Py3.
PyQt5 for Py2 is fully supported, so there is nothing to stop anybody else doing the work.
因此,您最好有一个非常充分的理由坚持使用 Python2 和 PyQt5,因为您将致力于要么自己维护 Windows 构建,要么依赖第三方来做这件事为你。
如果您进行一些网络搜索,您会发现一些二进制安装程序,以及自行构建它们的说明/教程。但我不会在这里认可其中任何一个,因为我自己没有尝试过其中任何一个(并且无意这样做)。
关于python - Python 2.7 的 Qt5 和 QtQuick 2 绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22801284/