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

Error while installing PyQt5: const class QJsonValue’ has no member named ‘toInt’

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

/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 版本不兼容。