LoginSignup
0
0

Matplotlib created a temporary cache directory at /tmp/matplotlib-5nsiuvb1 because the default path...の対処法

Posted at

状況

  • 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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0