Matplotlib cannot find basic fonts

后端 未结 10 787
一生所求
一生所求 2020-12-08 00:34

I am using matplotlib version 2.0.0 on Python 3 in a miniconda virtual environment. I am working on a unix scientific computing cluster where I don\'t have root privileges.

10条回答
  •  一生所求
    2020-12-08 00:53

    There is a conda package for it[1]. So, you don't really need sudo to fix this!

    conda install -c conda-forge -y mscorefonts
    

    restart jupyter and/or force rebuild matplotlib font cache

    import matplotlib
    matplotlib.font_manager._rebuild()
    

    [1] - https://anaconda.org/conda-forge/mscorefonts

提交回复
热议问题