我在我的Mac电脑上运行High Sierra。我有python版本2.7、3.6和3.7。每个版本都有conda环境。我一直在使用Spyder 3.3.2,非常喜欢它。但最近它停止了工作。我最好记得当我尝试升级到SpIDER 4时开始的问题。我已经删除了水蟒,并重新加载它没有用。我在Python2.7和3.6上尝试过,得到了相同的错误消息。
我试过的:卸载并安装Spyder。我重新加载了pyqt,它没有错误。我删除并重新安装了水蟒。
谁能告诉我该做什么?错误消息如下所示。
[py36] $ spyder
Traceback (most recent call last):
File "/Users/johnny/anaconda3/envs/py36/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in <module>
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/johnny/anaconda3/envs/py36/bin/spyder", line 11, in <module>
sys.exit(main())
File "/Users/johnny/anaconda3/envs/py36/lib/python3.6/site-packages/spyder/app/start.py", line 186, in main
from spyder.app import mainwindow
File "/Users/johnny/anaconda3/envs/py36/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 90, in <module>
from qtpy import QtWebEngineWidgets # analysis:ignore
File "/Users/johnny/anaconda3/envs/py36/lib/python3.6/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in <module>
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'
[johnny:~] [py36] 2s 1 $