Ric*_*son 103 python matplotlib
我刚刚升级到matplotlib(1.5.1)的最新稳定版本,每次我导入matplotlib我收到此消息:
/usr/local/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Run Code Online (Sandbox Code Playgroud)
...总是停顿几秒钟.
这是预期的行为吗?以前是否也一样,但是没有印刷的信息?
小智 115
正如汤姆在上面的评论中所建议的,删除文件:
fontList.cache
fontList.py3k.cache
tex.cache
Run Code Online (Sandbox Code Playgroud)
解决这个问题.在我的情况下,文件在:
`~/.matplotlib`
Run Code Online (Sandbox Code Playgroud)
EDITED
几天前,该消息再次出现,我删除了上述位置的文件,没有任何成功.我发现,建议在这里通过牛逼穆道有一个额外的位置信息与文本缓存文件是:~/.cache/fontconfig
Bil*_*ale 25
确认Hugo的方法适用于Ubuntu 14.04 LTS/matplotlib 1.5.1:
小智 12
在OSX Yosemite(版本10.10.15)上,以下内容适用于我:
rm -rvf ~/.cache/fontconfig/* rm -rvf ~/.matplotlib/*| 归档时间: |
|
| 查看次数: |
46200 次 |
| 最近记录: |