我刚刚升级到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.')
..。它总是会停顿几秒钟。
这是预期的行为吗?之前是不是也是一样,只是没有打印出来的消息?
发布于 2016-01-26 02:33:26
发布于 2016-04-17 00:43:32
我只使用sudo运行了一次python代码,它为我解决了这个警告。现在它跑得更快了。在没有sudo的情况下运行根本不会发出任何警告。
干杯
发布于 2016-02-15 06:49:51
我运行了python代码w. sudo,它修复了it...my猜测是没有权限写那个表……祝好运!
https://stackoverflow.com/questions/34771191
复制相似问题