1. 程式人生 > >解決Ubuntu16.04執行python Matplotlib is building the font cache using fc-list. This may take a moment

解決Ubuntu16.04執行python Matplotlib is building the font cache using fc-list. This may take a moment

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.

Matplotlib版本:

2、解決辦法:

sudo apt-get install libfreetype6-dev libxft-dev

PSFreeType專案是一個志願者團隊,他們為數字排版開發免費,便攜和高質量的軟體解決方案。 它們專門針對嵌入式系統,專注於提供小巧,高效和無處不在的產品。 該軟體包包含使用FreeType 2庫開發自己的程式所需的所有補充檔案(靜態庫,標題和文件)。

3、參考:

http://www.itkeyword.com/doc/5916265884786291702/matplotlib-taking-time-when-being-imported