我想用Qt 4.8和Python 3.2编译/安装PyQt 4.9。我已经安装了sip版本4.13.1。但是当我跑C:\Python32\python.exe configure.py
时。我收到以下错误:
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但仍然没有运气。不确定出了什么问题。任何帮助将不胜感激。
答案 0 :(得分:1)
如果您使用的是Windows,则无需编译任何内容 - 只需使用PyQt4 Download Page中的二进制安装程序。
我建议您退出目前已安装的任何内容并从头开始。二进制安装程序包括除python和Qt文档之外的所有内容。