在sip install之后安装PyQt(for pyuic4)就可以了:错误:PyQt-x11-gpl-4.11 install

时间:2016-11-13 08:28:14

标签: python linux pyqt4

安装sip后,我在尝试安装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 个答案:

答案 0 :(得分:1)

假设您正在使用ubuntu,则无需从源代码编译以获取pyuic4。如果您安装了正确的官方软件包,则应包含所有内容。

只需安装以下内容:

  • Python 2: python-qt4 pyqt4-dev-tools

或者这个:

  • Python 3: python3-pyqt4 pyqt4-dev-tools