ImportError:使用PySide时无法导入名称QtWebKit

时间:2018-02-01 17:55:29

标签: python pyside

我正在尝试让我的旧项目clipmanager构建,我遇到以下错误:

/home/user/.virtualenvs/clipmanager27/bin/python /home/user/development/clipmanager/clipmanager/app.py
Traceback (most recent call last):
  File "/home/user/development/clipmanager/clipmanager/app.py", line 15, in <module>
    from mainwindow import MainWindow
  File "/home/user/development/clipmanager/clipmanager/mainwindow.py", line 12, in <module>
    import dialogs
  File "/home/user/development/clipmanager/clipmanager/dialogs.py", line 8, in <module>
    from PySide import QtWebKit
ImportError: cannot import name QtWebKit

Process finished with exit code 1

我使用Pyside安装了pip install pyside。我甚至没有在网站包文件夹QtWebKit.so中看到/home/user/.virtualenvs/clipmanager27/lib/python2.7/site-packages/PySide

folder view of pyside package

是否因许可而被删除?

1 个答案:

答案 0 :(得分:0)

对于Arch Linux,在安装PySide之前安装qt4qtwebkit