>>>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.
求解!!
展开