关于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.
求解!! 展开
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.
求解!! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询