QtWebEngine没有属性QWebView

时间:2018-07-16 08:32:37

标签: python pyqt pyqt5

我正在尝试构建一个可以显示HTML文件的简单界面。我从旧的QtWebEngineWidgets迁移到了新的QtWebWidgets,我得到了:

 File "interface.py", line 576, in setupUi
    self.webView = QtWebEngineWidgets.QWebView(self.frameDataExploration)
AttributeError: module 'PyQt5.QtWebEngineWidgets' has no attribute 'QWebView'

编辑:

如果我只是尝试单独导入QtWebEngineWidgets,则会得到:

>>> from PyQt5 import QtWebEngineWidgets
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /home/user/.conda/envs/mp/bin/../lib/libxcb-dri3.so.0: undefined symbol: xcb_send_request_with_fds

0 个答案:

没有答案