【问题标题】:PyQt 5.3.1 Installing on ubuntu 14.04PyQt 5.3.1 在 ubuntu 14.04 上安装
【发布时间】:2014-09-02 11:58:00
【问题描述】:

我正在尝试在 ubuntu 14.04 上构建 PyQt 5.3.1。我需要 QtWebKit 模块。

我按照步骤配置了它

python configure.py -q /usr/lib/x86_64-linux-gnu/qt5/bin/qmake --sip-incdir=/usr/include/python2.7 --sipdir=/usr/share/sip  --enable QtWebKit QtWebKitWidgets

我在使用make时出现以下错误,

$HOME/PyQt-gpl-5.3.1/QtWebKit/sipQtWebKitQWebSettings.cpp:1208:48: error: ‘WebAudioEnabled’ is not a member of ‘QWebSettings’
     {sipName_WebAudioEnabled, static_cast<int>(QWebSettings::WebAudioEnabled), 26},
                                            ^
make[1]: *** [sipQtWebKitQWebSettings.o] Error 1
make[1]: Leaving directory '$HOME/PyQt-gpl-5.3.1/QtWebKit'
make: *** [sub-QtWebKit-make_first-ordered] Error 2

我该如何解决这个问题?

提前致谢。

【问题讨论】:

  • 好像helpful!
  • 或者,您可以使用apt-get install python3-pyqt5 安装它。

标签: python-2.7 ubuntu-14.04 pyqt5


【解决方案1】:

您可以使用pip 安装 PyQt5,而不是从源代码构建。 试试pip install Python-Qt5

【讨论】:

    猜你喜欢
    • 2016-04-03
    • 2014-07-24
    • 2015-01-30
    • 2014-12-29
    • 2014-11-22
    • 2017-05-21
    • 1970-01-01
    • 2015-05-31
    • 2015-08-09
    相关资源
    最近更新 更多