'Trying to open Spyder from Anaconda but getting the error: ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

I am trying to launch Spyder from within the anaconda navigator but I am persistently getting the error: ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'. When I tried to resolve this by opening a terminal window and running

pip install pyqt5

it returned error:

metadata-generation-failed

I've tried to wipe anaconda entirely from my machine and reinstall it, but this error keeps occurring. I've got no idea what to do.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source