【问题标题】:Error Installing PyQt with Qt 4.8.0使用 Qt 4.8.0 安装 PyQt 时出错
【发布时间】:2012-01-02 05:58:02
【问题描述】:

我正在尝试使用 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 但仍然没有运气。不太确定出了什么问题。任何帮助将不胜感激。

【问题讨论】:

    标签: qt python-3.x pyqt


    【解决方案1】:

    如果您使用的是 Windows,则无需编译任何东西 - 只需使用来自 PyQt4 Download Page 的二进制安装程序。

    我建议您退出到目前为止已安装的所有内容并从头开始。除了 python 和 Qt 文档之外,二进制安装程序包括您需要的所有内容。

    【讨论】:

      猜你喜欢
      • 2014-05-25
      • 1970-01-01
      • 1970-01-01
      • 2017-09-10
      • 2015-10-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-25
      相关资源
      最近更新 更多