在python工程的虚拟空间环境里:
1.SimHei.ttf 文件拷贝到指定的ttf文件夹之下。
2.在matplotlibrc 末尾添加如下几行。
3.清除缓存 rm -rf /root/.cache/matplotlib 文件夹。
4.reboot服务器。
在python工程的虚拟空间环境里:
1.SimHei.ttf 文件拷贝到指定的ttf文件夹之下。
2.在matplotlibrc 末尾添加如下几行。
3.清除缓存 rm -rf /root/.cache/matplotlib 文件夹。
4.reboot服务器。