linux 平台 matplotlib 字体报错如下:
Font family ['Times New Roman'] not found.
解决步骤:
- step 1
conda install -c conda-forge -y mscorefonts
- step 2
import matplotlib
matplotlib.font_manager._rebuild()
- step 3
rm ~/.cache/matplotlib -rf
参考
https://stackoverflow.com/questions/42097053/matplotlib-cannot-find-basic-fonts
标签:fonts,字体,step,conda,matplotlib,报错 From: https://www.cnblogs.com/lif323/p/16926987.html