简体   繁体   中英

Anaconda not letting me launch Spyder

Trying to Launch Spyder from Anaconda and keep getting error:

Traceback (most recent call last): File "/Users/gpoole14/opt/anaconda3/envs/ltcwbb/lib/python3.9/site-packages/qtpy/QtWebEngineWidgets.py", line 21, in from PyQt5.QtWebEngineWidgets import QWebEnginePage ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/gpoole14/opt/anaconda3/envs/ltcwbb/bin/spyder", line 11, in sys.exit(main()) File "/Users/gpoole14/opt/anaconda3/envs/ltcwbb/lib/python3.9/site-packages/spyder/app/start.py", line 233, in main from spyder.app import mainwindow File "/Users/gpoole14/opt/anaconda3/envs/ltcwbb/lib/python3.9/site-packages/spyder/app/mainwindow.py", line 59, in from qtpy import QtWebEngineWidgets # analysis:ignore File "/Users/gpoole14/opt/anaconda3/envs/ltcwbb/lib/python3.9/site-packages/qtpy/QtWebEngineWidgets.py", line 27, in from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

On anaconda prompt, do the following

conda uninstall -c anaconda spyder
conda install -c anaconda spyder

try it, this worked for me

Had the same issue on my Mac M1. Ultimately it worked as per Daniel Althviz comment. Go to Anaconda -> Environments -> 'Not installed', search for pyqtwebengine select it and click apply in the right bottom corner.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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