linux 安装Times New Roman字体
在使用matplotlib时,出现如下错误:UserWarning: findfont: Font family ['Times New Roman'] not found. Falling back to DejaVu Sans.(prop.get_family(), self.defaultFamily[fontext]))
·
在使用matplotlib时,出现如下错误:
UserWarning: findfont: Font family ['Times New Roman'] not found. Falling back to DejaVu Sans.
(prop.get_family(), self.defaultFamily[fontext]))
解决方案:
$ sudo apt install msttcorefonts -qq
$ rm ~/.cache/matplotlib -rf
更多推荐
已为社区贡献1条内容
所有评论(0)