ysl2 / .dotfiles

My dotfiles
1 stars 0 forks source link

debian下安装Times New Roman字体 #43

Open ysl2 opened 4 months ago

ysl2 commented 4 months ago

Ref: https://blog.csdn.net/u014712482/article/details/80568540

sudo apt-get install ttf-mscorefonts-installer
sudo fc-cache -f -v

对于matplotlib或者seaborn,还需要删掉缓存文件夹

import matplotlib as plt
pit.get_cachedir()  # 默认位置是`~/.cache/matplotlib`