python - 安装 PyQt5 时出错 : const class QJsonValue’ has no member named ‘toInt’

标签 python c++ pyqt qt5 pyqt5

我正在尝试安装 PyQt5,但出现此错误,我阅读了一些与此错误相关的其他帖子,但都没有帮助。

/home/pathname/Downloads/PyQt-gpl-5.5.1/QtCore/sipQtCoreQJsonValue.cpp:367:30: error: ‘const class QJsonValue’ has no member named ‘toInt’
             sipRes = sipCpp->toInt(a0);
                              ^
make[1]: *** [sipQtCoreQJsonValue.o] Error 1
make[1]: Leaving directory `/home/pathname/Downloads/PyQt-gpl-5.5.1/QtCore'
make: *** [sub-QtCore-make_first-ordered] Error 2

我在主文件夹中安装了 Qt5,当我执行 python configure.py 时,我将 qmake 添加到 Qt5 所在的路径中,并且没有问题.但是使用 make 命令时我遇到了这个错误。

最佳答案

您可用于 make 系统的 Qt 版本必须与您正在构建的 PyQt 版本不兼容。

关于python - 安装 PyQt5 时出错 : const class QJsonValue’ has no member named ‘toInt’ ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35204514/

相关文章:

python - Databricks 列出 Azure Blob 存储中的所有 Blob

python - 这两个代码有什么区别?

c++ - C++ 内联汇编用于数据转换

c++ - 不等待 cin 的 while 循环

python - 在Qt中自动调整标签文本的大小-奇怪的行为

python - 如何从不同的子模块导入一个子模块?

python - Django AdminSite定制如何编辑sites.py文件? ("Properly")

c++ - 将 C cstyle 数组视为 std::array

python - 如何在pyqt中禁用QTableView的默认上下文菜单?

python - 如何调试 PyQt 崩溃?