安装PyQt5时出错:const类QJsonValue'没有名为'toInt'的成员

时间:2016-02-04 15:05:36

标签: 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命令我收到了这个错误。

1 个答案:

答案 0 :(得分:1)

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