关于python的import matplotlib.pyplot报错的问题 10

>>>importmatplotlib.pyplotaspltTraceback(mostrecentcalllast):File"C:\Users\Administra... >>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1448, in <module>
fontManager = json_load(_fmcache)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 978, in json_load
return json.load(fh, object_hook=_json_decode)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\json\__init__.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\json\__init__.py", line 332, in loads
return cls(**kw).decode(s)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\json\decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 10219 column 7 (char 293312)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
import matplotlib.pyplot as plt
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\pyplot.py", line 32, in <module>
import matplotlib.colorbar
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\colorbar.py", line 36, in <module>
import matplotlib.contour as contour
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\contour.py", line 21, in <module>
import matplotlib.font_manager as font_manager
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1458, in <module>
_rebuild()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1441, in _rebuild
with cbook.Locked(cachedir):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\cbook\__init__.py", line 2481, in __enter__
raise self.TimeoutError(err_str)
matplotlib.cbook.Locked.TimeoutError: LOCKERROR: matplotlib is trying to acquire the lock
'C:\\Users\\Administrator\\.matplotlib\\.matplotlib_lock-*'
and has failed. This maybe due to any other process holding this
lock. If you are sure no other matplotlib process is running try
removing these folders and trying again.

求解!!
展开
 我来答
喧嚣的少年
2018-02-24 · TA获得超过244个赞
知道答主
回答量:5
采纳率:66%
帮助的人:3.6万
展开全部
If you are sure no other matplotlib process is running try
removing these folders and trying again
报错信息提示你去python的安装路径的site-package文件夹删除matplotlib相关文件夹。最好重新安装下该模块。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式