gpt4 book ai didi

macos - MacoS 上 "Matplotlib is building the font cache using fc-list. This may take a moment."的问题

转载 作者:行者123 更新时间:2023-12-04 03:26:19 24 4
gpt4 key购买 nike

我正在运行 OS X 10.11.3,并且我已经安装了 Anaconda3-2.5.0-MacOSX-x86_64.pkg,其中包括 Matplotlib 1.5.1。当我尝试使用以下内容在 Jupyter 中导入 Matplotlib 时:

import matplotlib.pyplot as pp

我收到一条很长的错误消息,开头如下:

/Users/hgbauer/anaconda/lib/python3.5/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.



无论我等多久,消息都不会消失。

我在一个相关的帖子中注意到:

matplotlib taking time when being imported

问题可能需要删除 ~/.cache/matplotlib 的内容,但在这种情况下,Matplotlib 似乎是单独安装的,而不是作为 Anaconda 的一部分。

我的问题是这样的:

如何访问 Anaconda 中的 ~/.cache/matplotlib 文件以删除内容?

任何建议将不胜感激。

最佳答案

要删除的文件在~/.matplotlib下, 而不是 ~/.cache/matplotlib (出于迷信,您还想删除 ~/.cache/fontconfig,但错误的 .matplotlib 路径是大问题)

您应该在下次运行时再次看到那条讨厌的消息,然后就不会再看到了。

关于macos - MacoS 上 "Matplotlib is building the font cache using fc-list. This may take a moment."的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35734074/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com