UserWarning:Matplotlib正在使用fc-list构建字体缓存。这可能需要一点时间

时间:2018-03-13 19:38:16

标签: python matplotlib

很可能matplotlib 1.5.1已安装在您的计算机中,您可能会遇到此类警告:

/usr/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.')

1 个答案:

答案 0 :(得分:-3)

要摆脱此警告,请通过以下方式升级matplotlib:

*sudo pip install --upgrade matplotlib*