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

>>>importmatplotlib.pyplotaspltTraceback(mostrecentcalllast):File"C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\font_manager....

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

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 "", line 1, in

import matplotlib.pyplot as plt

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\pyplot.py", line 32, in

import matplotlib.colorbar

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\colorbar.py", line 36, in

import matplotlib.contour as contour

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\contour.py", line 21, in

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

_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.

求解!!

展开

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值