【问题标题】:how to install QtSvg,QtWebKit,QtWebKitWidgets(all in Qt5 version) on ubuntu 14.04?如何在 ubuntu 14.04 上安装 QtSvg、QtWebKit、QtWebKitWidgets(全部为 Qt5 版本)?
【发布时间】:2015-06-09 14:00:12
【问题描述】:

我要安装eric6-6.0.6。结果

python3 install.py

是:

Checking dependencies
Python Version: 3.4.0
Found PyQt5
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtPrintSupport
Found QtSql
Sorry, please install QtSvg.
Error: No module named 'PyQt5.QtSvg'
Sorry, please install QtWebKit.
Error: No module named 'PyQt5.QtWebKit'
Sorry, please install QtWebKitWidgets.
Error: No module named 'PyQt5.QtWebKitWidgets'
Found QtWidgets

但是缺少了怎么安装呢? 我google了很多,但没有找到正确的答案。

谁能帮我一个忙?

非常感谢!

【问题讨论】:

  • 你是如何安装Qt的?

标签: python qt qt5


【解决方案1】:

你可以安装这些包

sudo apt-get install <package>

我现在没有设置 ubuntu 发行版,所以我无法为你验证,但我认为你不需要安装第三个包。

包:

libqt5webkit5-dev

对于 python-3.x:

python3-pyqt5.qtsvg

python3-pyqt5.qtwebkit

【讨论】:

  • 如果我安装这些包,我会更改sip包,那么我在安装eric6时会遇到以下问题:包括以下回溯,到eric-bugs@eric-ide.python-projects。组织。回溯(最后一次调用):文件“install.py”,第 1548 行,在 main(sys.argv) 文件“install.py”,第 1451 行,在 main doDependancyChecks() 文件“install.py”中,第 1077 行,在 doDependancyChecks from PyQt5 import Qsci # IGNORE_WARNING RuntimeError: the sip module implements API v11.0 but the PyQt5.Qsci module requires API v11.1
  • stackoverflow.com/questions/22569388/… 你运行的是什么操作系统?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-05-16
  • 2015-01-28
  • 1970-01-01
  • 2019-03-28
  • 1970-01-01
  • 2014-12-23
相关资源
最近更新 更多