如何解决matplotlib导入时需要时间
fontList.cache
fontList.py3k.cache
tex.cache
`~/.matplotlib`
已编辑
几天前,该消息再次出现,我删除了上述位置中的文件,但没有成功。我发现,建议在这里通过有一个额外的位置信息与文本缓存文件是:~/.cache/fontconfig
解决方法
我刚刚升级到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.')
…总是停顿几秒钟。
这是预期的行为吗?之前也一样,只是没有打印出来的消息吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。