【问题标题】:spyder's kernel dies when I try to make a plot [duplicate]当我尝试制作情节时,spyder的内核死了[重复]
【发布时间】:2021-12-16 23:29:36
【问题描述】:

我刚刚将 spyder 更新到 5.1.5,只需要这 4 行代码就可以破解内核:

import numpy as np
import matplotlib.pyplot as plt
arr = np.arange(0,100)
plt.plot(arr)

其他情节也失败了。内联绘图也失败。救命!

我使用 anaconda 创建了一个新环境:

conda create -n ws_fcst python=3.8 spyder pandas numpy matplotlib scikit-learn sqlalchemy pyodbc

还是同样的问题。

【问题讨论】:

    标签: python matplotlib conda spyder freetype


    【解决方案1】:

    这可能与我的问题重复。

    Spyder 5.1.5 creates a new kernel after running a custom function

    我的答案中有一个潜在的解决方案。否则,您还可以按照 Eheran1 在此 GitHub 帖子中的建议,通过 conda install freetype=2.10.4 将 freetype 从 2.11.0 降级到 2.10.4。

    https://github.com/spyder-ide/spyder/issues/16659

    【讨论】:

    • @XiB 我很好奇你尝试了哪个,matplotlib的降级还是freetype的降级?
    • Freetype :),我想我会从尽可能小的改变开始。
    猜你喜欢
    • 2020-02-08
    • 1970-01-01
    • 2019-03-02
    • 1970-01-01
    • 2020-02-28
    • 2016-12-23
    • 2018-07-01
    • 1970-01-01
    • 2019-06-27
    相关资源
    最近更新 更多