hpaalm
hpaalm

Reputation: 65

No module named 'PyQt5.QtWebEngineWidgets' Error

I have instlled PyQtWebEngine module with pip but I get this python error:

No module named '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)

Upvotes: 1

Views: 2602

Answers (1)

rumo
rumo

Reputation: 1

try the repair option on your python installer or try reinstalling python or the IDE

Upvotes: 0

Related Questions