Matplotlib cannot find basic fonts

后端 未结 10 786
一生所求
一生所求 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:41

    I was facing a similar issue in a Cloud Datalab docker image running on a gcloud VM. Executing the following fixed the issue for me:

    $ sudo apt install msttcorefonts -qq
    $ rm ~/.cache/matplotlib -rf
    

    Here is instructions on how to get to the docker image running on the gcloud VM containing the Datalab instance just in case.

提交回复
热议问题