2016-11-13 79 views
1

安装sip后,当试图安装PyQt-x11-gpl-4.11时,我不断收到这个可爱的错误消息。在安装sip后安装PyQt(用于pyuic4)OK:错误:PyQt-x11-gpl-4.11安装

mycommandline$ python configure-ng.py --verbose 

Querying qmake about your Qt installation... 

Determining the details of your Qt installation... 

/usr/bin/qmake -o qtdetail.mk qtdetail.pro 

make -f qtdetail.mk 

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -o qtdetail.o qtdetail.cpp 
g++ -m64 -Wl,-O1 -o qtdetail qtdetail.o -L/usr/lib/x86_64-linux-gnu -lQtCore -lpthread 

Error: Failed to determine the detail of your Qt installation. 

我真的无法弄清楚它的含义。这是一个依赖性问题吗?

回答

1

假设你使用的是Ubuntu,不需要从源代码编译来获得pyuic4。如果您安装了正确的官方软件包,则应包含所有内容。

只要安装或者这样:

  • 的Python 2:蟒蛇-QT4PyQt4的-DEV-工具

或者这样:

  • 的Python 3:python3-pyqt4 and pyqt4-dev-too ls
+0

没有安装pyqt4-dev-tools,非常感谢! :) – Julia