过54321 发表于 2022-11-8 10:25:31

Matplotlib created a temporary config/cache directory at C:\Users\xx\AppDat...

Matplotlib created a temporary config/cache directory at C:\Users\xx\AppData\Local\Temp\matplotlib-r0eiymff because the default path (C:\Users\xx\.matplotlib) is not a writable directory; ihighly 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.
做迭代的时候遇到的,这怎么解决呢

Twilight6 发表于 2022-11-8 14:24:08


百度到的解决方法试试看:

import os
os.environ['MPLCONFIGDIR'] = os.getcwd() + "/configs/"

import matplotlib.pyplot as plt

过54321 发表于 2022-11-8 21:07:42

Twilight6 发表于 2022-11-8 14:24
百度到的解决方法试试看:

我用管理者权限打开了

过54321 发表于 2022-11-8 21:08:13

Twilight6 发表于 2022-11-8 14:24
百度到的解决方法试试看:

这串代码是什么意思呢
页: [1]
查看完整版本: Matplotlib created a temporary config/cache directory at C:\Users\xx\AppDat...