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

标签 macos matplotlib anaconda jupyter

我正在运行 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/

相关文章:

macos - 避免 Mac OS 上的 SSH 超时?

bash - 检查文件夹是否包含 glob

python - 从 pandas DataReader 导入数据时,x 轴日期未显示在 matplotlib 上

python - Tcl错误: invalid command name tcl_findLibrary

python - 在 matplotlib basemap 中设置数据限制

python - 如何在 Ubuntu 上完全清理或重置 Python 安装

python - 软件包安装在 anaconda\lib\site-packages 中并在 spy 程序中找到,但不在 jupyter 笔记本中

SwiftUI 核心数据不在关系集中

python - 为什么 Anaconda 有两个相同的 `libpython2.7.so` ?

cocoa - DropBox 查找器按钮