解决方法:把旧的写法from PyQt5.QtWebKitWidgets import *改成新的写法from PyQt5.QtWebEngineWidgets import *
参考来自:https://blog.csdn.net/karmacode/article/details/80558153