Skip to content
Sign upLog in
← Back to Community

Bug report --> about Matplotlib runtime

Profile icon
p3artschoolHacker

warning message as follow :

Matplotlib created a temporary config/cache directory at /tmp/matplotlib-ckzbt6ee because the default path (/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.

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
Moniprasad
Profile icon
insomnia0616
Profile icon
p3artschool
Comments
hotnewtop
Profile icon
Coder100

That's just a warning, not an error, and that is also expected.

click here

to learn how to fix it!

Also, next time report bugs to bugs please!

import os os.environ['MPLCONFIGDIR'] = os.getcwd() + "/configs/" import matplotlib # ...
Profile icon
p3artschool

@Coder100
Thank you. That works.

Profile icon
Coder100

awesome!! Mark as correct answer?

@p3artschool

Profile icon
AIDANLAM4

@Coder100
this works thanks