import matplotlib.pyplot as plt出錯


>>>import matplotlib.pyplot as plt /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.')

在第八講中,導入這個模塊出錯
解決:

找到緩存目錄 刪除~/.cache/matplotlib下面的緩存

 deleted ~/.cache/matplotlib/fontList.cache

但是,當我准備刪的時候,再import matplotlib時時沒有出錯,不知道具體的原因是什么


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM