我 mac 上的 Spyder 最近停止工作,并在我启动它时立即向终端显示错误消息

Spyder on my mac recently stopped working and gives me error messages to the terminal as soon as I launch it

我 运行 High Sierra Mac。我有 python 版本 2.7、3.6 和 3.7。每个版本我都有 conda 环境。我一直在使用 Spyder 3.3.2,并且非常喜欢它。但是最近它停止工作了。最好我能记得当我尝试升级到 Spyder 4.0 时出现的问题。我已经删除了 Anaconda 并重新加载它无济于事。我在 Python 2.7 和 3.6 上试过了,我得到了同样的错误信息。

我试过的方法:卸载并安装 spyder。我重新加载了 pyqt,它加载时没有错误。我删除并重新安装了 Anaconda。

谁能告诉我我需要做什么?错误信息如下所示。

[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 $

我找到了解决方案,我想更多的是解决方法。我彻底删除了我的anaconda3目录,回到Anaconda主页重新安装了anaconda3。现在 Spyder 运行良好。