我正在尝试构建一个可以显示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