Spyder3 - AttributeError: 'SpyderKernel' object has no attribute '_show_mpl_backend_errors'

Spyder3 - AttributeError: 'SpyderKernel' object has no attribute '_show_mpl_backend_errors'

我对 Spyder3 有疑问。当我打开它时,此警告出现在控制台上。

Python 3.8.5 (default, Jul 28 2020, 12:59:40)
Type "copyright", "credits" or "license" for more information.

IPython 7.13.0 -- An enhanced Interactive Python.

Traceback (most recent call last):

  File "<ipython-input-1-db6556ffc451>", line 1, in <module>
    get_ipython().kernel._show_mpl_backend_errors()

AttributeError: 'SpyderKernel' object has no attribute '_show_mpl_backend_errors'

有人可以帮助我吗?我正在使用 Ubuntu 20.04 并且在我 运行 在终端上执行以下命令后出现此警告。我正在尝试安装新版本的 Spyder。

pip install -U spyder

在此先感谢您的帮助!

我也遇到过同样的情况,Ubuntu、Python 和 IPython 版本完全相同。似乎从 GUI 启动 Spyder 是个问题,我从终端启动它,并且在更新的 Spyder 版本上一切正常。

  1. 卸载 anaconda 并删除其所有文件
  2. 重启
  3. 新安装时请仔细阅读所有说明

注意:如果您使用的是 ubuntu,那么首先制作环境,然后使用 pip 安装 spyder。 (在我的情况下它已解决)