簡體   English   中英

使用Python 3安裝PyQt4-錯誤

[英]Installing PyQt4 with Python 3 - error

我按照說明在此處下載和安裝sip和pyqt4

http://ubuntuforums.org/showthread.php?t=1777613

我通過aptitude擁有PyQt4,可用於我的Python 2.7安裝; 為了使其適用於Python 3,當我運行sudo make時,我得到以下消息:

    make[1]: Entering directory `/home/usman/programs/PyQt-x11-gpl-4.10/QtCore'
g++ -c -m64 -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/home/usman/programs/PyQt-x11-gpl-4.10/qpy/QtCore -I/usr/include/python3.2mu -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4 -o sipQtCorecmodule.o sipQtCorecmodule.cpp
/home/usman/programs/PyQt-x11-gpl-4.10/QtCore/sipQtCorecmodule.cpp:9883:1: error: braces around scalar initialiser for type ‘sipSubClassConvertorDef* {aka _sipSubClassConvertorDef*}’
make[1]: *** [sipQtCorecmodule.o] Error 1
make[1]: Leaving directory `/home/usman/programs/PyQt-x11-gpl-4.10/QtCore'
make: *** [all] Error 2

有人知道解決方案嗎? 謝謝

您需要執行sudo make 完成后,您應該能夠編譯源代碼。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM