Matplotlib 在jupyter运行时导致内核挂掉 - aierlma/git_instructions GitHub Wiki

卸载matplotlib再重装 一般是版本问题

参考Jupyter中使用matplotlib画图出现kernel died问题

解决方案:

最后我在stackoverflow上面找到了答案:

Kernel appears to have died - Jupyter notebook python matplotlib - Stack Overflow

I try the solution of this video, based on this post, and it worked for me:

  • Run Anaconda Prompt as administrator

  • conda install --yes freetype=2.10.4

我最开始freetype没有限定版本, conda install --yes freetype 还是报错。按照上面的限定了版本号为 2.10.4 就解决了。

Matplotlib依赖freetype库。