我下载了PyQt5 v.5.15.2 解决了 ImportError,但是又出现了一个新问题:
PyQt5.QtWebEngineCore有一项”PyQt5.sip.Buffer”,由于这一项导致QWebEngineView无法运行,有知道这个问题的解决方法吗?
>>> from PyQt5.QtWebEngineWidgets import QWebEngineView
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from PyQt5.QtWebEngineWidgets import QWebEngineView
File "C:\Users\nail8\AppData\Local\Programs\Python\Python38\lib\site-packages\PyQt5\QtWebEngineWidgets.py", line 28, in <module>
from PyQt5 import QtWebEngineCore
File "C:\Users\nail8\AppData\Local\Programs\Python\Python38\lib\site-packages\PyQt5\QtWebEngineCore.py", line 40, in <module>
PyQt5.sip.Buffer, None]
AttributeError: module 'PyQt5.sip' has no attribute 'Buffer'