Error : "The kernel appears to have died. It will restart automatically."

Error : "The kernel appears to have died. It will restart automatically."

我遇到了一个不知道如何修复的错误。我正在尝试让这段代码在 windows 上运行,但出现此错误

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt


plt.plot()

Error: "The kernel appears to have died. It will restart automatically."

您可以只使用 py 脚本而不是 Jupyter,但如果您想使用 Jupyter,请尝试重新安装 NumPy 或更新。

pip install -U numpy

我刚刚在使用 Jupyter notebook 时出现了相同的错误消息。根据我阅读的内容,我认为建议重新安装 pandas、NumPy 和 matplotlib(必要时使用其他库)并查看是否可行。

我还有其他几个问题,所以我重新安装了 Anaconda 导航器。