导入错误:没有名为“PyQt4.QtWebKit”的模块

ved*_*dar 6 python pyqt 16.10

我将 Ubuntu 从 16.04 升级到 16.10,之前运行的 python3 代码不再运行,即:

$ python3
Python 3.5.2+ (default, Sep 22 2016, 12:18:14) 
[GCC 6.2.0 20160927] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtWebKit import QWebView
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'PyQt4.QtWebKit'
>>> 
Run Code Online (Sandbox Code Playgroud)

python3-pyqt4安装包。

为什么会这样,需要什么其他软件包才能工作?

The*_*ler 3

看起来该PyQt4.QtWebKit软件包在 Ubuntu 16.10 中已被删除,可能是因为 PyQt4 和 QtWebKit 都长期无人维护。