python
1import matplotlib.pylab as plt
上記コードのようにmatplotlibをimportしているコードを動かそうとするとタイトルのようなwarningsを表示してしまいます。
stack overflowなどでfont cacheを削除したら治るという記事を見つけたのですが、~/.cache
及び~/.matplotlib
下にはfont関連のキャッシュはありません。
どなたか解決方法を教えていただけると幸いです。
環境
el capitan
python3.5.0
matplotlib (1.5.3)
/Users/username/.pyenv/versions/3.5.0/lib/python3.5/site-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.') ^CTraceback (most recent call last): File "/Users/username/.pyenv/versions/3.5.0/lib/python3.5/site-packages/matplotlib/font_manager.py", line 1413, in <module> fontManager = pickle_load(_fmcache) File "/Users/username/.pyenv/versions/3.5.0/lib/python3.5/site-packages/matplotlib/font_manager.py", line 964, in pickle_load with open(filename, 'rb') as fh: FileNotFoundError: [Errno 2] No such file or directory: '/Users/username/.matplotlib/fontList.py3k.cache' During handling of the above exception, another exception occurred:

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。