2012-01-02 75 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文档以外的所有东西。