Python 3.7.0 No module named 'PyQt5.QtWebEngin

2019-02-26 04:19发布

问题:

I have Python 3.7.0 and I installed PyQt5 with this command:

pip install PyQt5

I have returned this error:

    main.py", line 4, in <module>
    from PyQt5.QtWebEngineWidgets import *
ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'

In Eclipse I have this configuration:

What may be wrong?

Thanks

回答1:

I have just installed older version of pyqt5

pip install PyQt5==5.7.1



回答2:

this is problem with pyqt5 version you can try pip install pyqt5==pyqt5.8 or same for conda , i think this can help