python - Python 2.7 的 Qt5 和 QtQuick 2 绑定(bind)

标签 python python-2.7 pyqt windows-installer pyqt5

我想将 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?

  1. Incompatibilities between dependencies and compiler versions - there would be no support for QtWebKit.

  2. I'm trying to limit the total number of installer I maintain.

  3. 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/

相关文章:

python - `PriorityQueue` 是否尊重元组的顺序?

python - 如何发出 python 请求、加载 javascript、填写表单并单击提交

python - PyQT5:如何使用单选按钮的状态灰显并停用行编辑

python - 在Python中更改Widget Window的样式和背景颜色

python - "on_enter"回调中更改状态时的回调顺序

python - 我该如何修复它,以便小部件password_entry在正确的密码后被销毁?

python - 如何消除Python中subprocess.Popen的标准输出?

python - wx.Image 抛出 PyAssertionError

python - Pycharm 中的 PyQT 智能感知/签名?

python - youtube-dl:设置元数据属性并从 python 嵌入缩略图?