Problems with “Matplotlib is building the font cache using fc-list. This may take a moment.” on MacoS

前端 未结 2 1174
无人共我
无人共我 2021-01-17 14:03

I am running OS X 10.11.3, and I have installed Anaconda3-2.5.0-MacOSX-x86_64.pkg which includes Matplotlib 1.5.1. When I try to import Matplotlib in Jupyter with the follo

相关标签:
2条回答
  • 2021-01-17 14:20

    You can find this out with get_cachedir(). For example in python 2:

    import matplotlib as mpl
    print mpl.get_cachedir()
    

    and in python 3:

    import matplotlib as mpl
    print(mpl.get_cachedir())
    

    See here for more information

    0 讨论(0)
  • 2021-01-17 14:22

    The files to be removed are under ~/.matplotlib, rather than ~/.cache/matplotlib (you'll also want to remove ~/.cache/fontconfig out of superstition, but the wrong .matplotlib path was the big thing)

    You should see that pesky message again on your next run, then no more.

    0 讨论(0)
提交回复
热议问题