简体   繁体   English

没有名为“PyQt5.QtWebEngineWidgets”的模块错误

[英]No module named 'PyQt5.QtWebEngineWidgets' Error

I have instlled PyQtWebEngine module with pip but I get this python error:我已经用 pip 安装了 PyQtWebEngine 模块,但我收到了这个 python 错误:

No module named 'PyQt5.QtWebEngineWidgets'没有名为“PyQt5.QtWebEngineWidgets”的模块

my code is:我的代码是:

import sys
from PyQt5.QtCore import *
from PyQt5.QtWebEngineWidgets import *
from PyQt5.QtWidgets import QApplication
app = QApplication(sys.argv)
web = QWebEngineView()
web.load(QUrl(r'C:\Users\Hss\Desktop\hi.html'))
web.show()

sys.exit(app.exec_())

how i solve this problem?(All library is updated)我如何解决这个问题?(所有库都已更新)

try the repair option on your python installer or try reinstalling python or the IDE尝试 python 安装程序上的修复选项或尝试重新安装 python 或 IDE

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM