只需要以下四步骤:
1)停止Jupyter
2)安装 font-manager:
sudo apt install font-manager
3) 清除matplotlib cache directory:
sudo rm ~/.cache/matplotlib -fr
4)重启Jupyter.
本文提供了一种解决Matplotlib在Jupyter中显示字体问题的方法,通过四个步骤:停止Jupyter,安装font-manager,清除matplotlib缓存目录,最后重启Jupyter,帮助用户轻松解决字体显示异常的问题。
只需要以下四步骤:
1)停止Jupyter
2)安装 font-manager:
sudo apt install font-manager
3) 清除matplotlib cache directory:
sudo rm ~/.cache/matplotlib -fr
4)重启Jupyter.
3520
3541
2113
2491

被折叠的 条评论
为什么被折叠?