Mac下 Anaconda打不开spyder的解决方法

问题

报错:

Traceback (most recent call last):
File "/Users/apple/anaconda3/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in 
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: dlopen(/Users/apple/anaconda3/lib/python3.6/site-packages/PyQt5/QtWebEngineWidgets.so, 2): Library not loaded: @rpath/libQt5WebEngineCore.5.dylib
Referenced from: /Users/apple/anaconda3/lib/python3.6/site-packages/PyQt5/QtWebEngineWidgets.so
Reason: image not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/apple/anaconda3/bin/spyder", line 11, in 
sys.exit(main())
File "/Users/apple/anaconda3/lib/python3.6/site-packages/spyder/app/start.py", line 144, in main
from spyder.app import mainwindow
File "/Users/apple/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 92, in 
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/Users/apple/anaconda3/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in 
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

简单粗暴解决方法:

终端直接升级:

pip install --upgrade spyder

你可能感兴趣的:(Mac下 Anaconda打不开spyder的解决方法)