【问题标题】:Where is the sipconfig module to make QT5 bindings for PyQT5?为 PyQT5 进行 QT5 绑定的 sipconfig 模块在哪里?
【发布时间】:2021-03-21 01:51:12
【问题描述】:

我正在尝试为一些 C++ QT5 代码构建 PyQt5 绑定。我试过按照这里的答案:

Is it possible to embed C++ widget to PyQt application?

链接存储库中的代码依赖于 sipconfig 模块,但我无法弄清楚从哪里/如何获取此模块。

还需要 sipconfig 模块吗?示例代码和文档https://www.riverbankcomputing.com/static/Docs/sip/examples.html 对于 sip5 没有提及。

【问题讨论】:

    标签: pyqt5


    【解决方案1】:

    sipconfig 位于 sip 包中。

    如果你使用的是 ubuntu 的 pyqt5 则使用 apt-get install python3-sip 安装它,否则使用 pip:python3 -m pip install sip

    【讨论】:

    • 我这样做了,但我的 venv 中没有看到 sip 包。只有一个 sipbuild。这是我需要编译的东西吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-20
    • 2016-07-11
    • 1970-01-01
    • 2011-07-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多