状況
- Ubuntu 20.04のdocker
- pythonでmatplotlibを使用中によくわからんwarningが出る
警告
from mmpose.apis import MMPoseInferencer
Matplotlib created a temporary cache directory at /tmp/matplotlib-5nsiuvb1 because the default path (/home/【username】/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
改善方法
sudo mkdir -p ~/.config/matplotlib
sudo chmod -R 777 /home/【username】/.config/matplotlib