我将 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安装包。
为什么会这样,需要什么其他软件包才能工作?
| 归档时间: |
|
| 查看次数: |
14090 次 |
| 最近记录: |