【问题标题】:Installing PyQt (for pyuic4) after sip install goes OK: error: PyQt-x11-gpl-4.11 install在 sip install 成功后安装 PyQt(用于 pyuic4):错误:PyQt-x11-gpl-4.11 install
【发布时间】:2016-11-13 08:28:14
【问题描述】:

安装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.

我真的不明白这意味着什么。是依赖问题吗?

【问题讨论】:

    标签: python linux pyqt4


    【解决方案1】:

    假设您使用的是 ubuntu,则无需从源代码编译即可获得 pyuic4。如果你安装了正确的官方包,一切都应该包括在内。

    只需安装这个:

    • Python 2:python-qt4pyqt4-dev-tools

    或者这个:

    • Python 3:python3-pyqt4pyqt4-dev-tools

    【讨论】:

    • 没有安装 pyqt4-dev-tools,非常感谢! :)
    猜你喜欢
    • 1970-01-01
    • 2011-07-27
    • 2015-10-06
    • 2015-11-10
    • 2012-05-21
    • 2019-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多