2012-01-02 76 views
0

我正在用Qt 4.8和Python 3.2編譯/安裝PyQt 4.9。我已經安裝了sip版本4.13.1。但是當我運行C:\Python32\python.exe configure.py。我收到以下錯誤:使用Qt 4.8.0安裝PyQt時出錯

Determining the layout of your Qt installation... 
This is the GPL version of PyQt 4.9 (licensed under the GNU General Public 
License) for Python 3.2.2 on win32. 
Found the license file pyqt-gpl.sip. 
Checking to see if the QtGui module should be built... 
Checking to see if the QtHelp module should be built... 
Checking to see if the QtMultimedia module should be built... 
Checking to see if the QtNetwork module should be built... 
Checking to see if the QtDeclarative module should be built... 
Checking to see if the QtOpenGL module should be built... 
Checking to see if the QtScript module should be built... 
Checking to see if the QtScriptTools module should be built... 
Checking to see if the QtSql module should be built... 
Checking to see if the QtSvg module should be built... 
Checking to see if the QtTest module should be built... 
Checking to see if the QtWebKit module should be built... 
Checking to see if the QtXml module should be built... 
Checking to see if the QtXmlPatterns module should be built... 
Checking to see if the phonon module should be built... 
Checking to see if the QtAssistant module should be built... 
Checking to see if the QtDesigner module should be built... 
Checking to see if the QAxContainer module should be built... 
Qt v4.8.0 free edition is being used. 
SIP 4.13.1 is being used. 
The Qt header files are in C:\Qt\include. 
The shared Qt libraries are in C:\Qt\lib. 
The Qt binaries are in C:\Qt\bin. 
The Qt mkspecs directory is in C:\Qt. 
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia, 
QtNetwork, QtDeclarative, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, 
QtTest, QtWebKit, QtXml, QtXmlPatterns, phonon, QtDesigner, QAxContainer. 
The PyQt Python package will be installed in C:\Python32\Lib\site-packages. 
PyQt is being built with generated docstrings. 
The Designer plugin will be installed in C:\Qt\plugins\designer. 
The PyQt .sip files will be installed in C:\Python32\sip\PyQt4. 
pyuic4, pyrcc4 and pylupdate4 will be installed in C:\Python32. 
Generating the C++ source for the QtCore module... 
Creating the Makefile for the QtCore module... 
Generating the C++ source for the QtDeclarative module... 
sip: __or__() unsupported function return type - provide %MethodCode and a C++ s 
ignature 
Error: Unable to create the C++ code. 

我累了重新安裝sip,但仍然沒有運氣。不確定發生了什麼問題。任何幫助將非常感激。

回答

1

如果您在Windows上,則無需編譯任何內容 - 只需使用PyQt4 Download Page中的二進制安裝程序。

我建議你退出到目前爲止安裝的任何東西,並從頭開始。二進制安裝程序包括除python和Qt文檔以外的所有東西。