~/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf
注:~/ 指当前python环境所在目录
cd ~/.cache/matplotlib
rm * -r
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif']=['Times New Roman']
附:Times New Roman字体文件获取
链接:https://pan.baidu.com/s/1AhxLIIVRiM29f1jf0w2Jww
提取码:1234