from matplotlib import pyplot as plt
%matplotlib inline
报错如下:
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-79-b5c1b06a2025> in <module>
----> 1 from matplotlib import pyplot as plt
2 get_ipython().run_line_magic('matplotlib', 'inline')
~\Anaconda3\lib\site-packages\matplotlib\pyplot.py in <module>
34 from cycler import cycler
35 import matplotlib
---> 36 import matplotlib.colorbar
37 import matplotlib.image
38 from matplotlib import _api
~\Anaconda3\lib\site-packages\matplotlib\colorbar.py in <module>
40 import matplotlib.patches as mpatches
41 import matplotlib.path as mpath
---> 42 import matplotlib.spines as mspines
43 import matplotlib.transforms as mtransforms
44 from matplotlib import docstring
~\Anaconda3\lib\site-packages\matplotlib\spines.py in <module>
12
13
---> 14 class Spine(mpatches.Patch):
15 """
16 An axis spine -- the line noting the data area boundaries.
~\Anaconda3\lib\site-packages\matplotlib\spines.py in Spine()
32 return "Spine"
33
---> 34 @docstring.dedent_interpd
35 def __init__(self, axes, spine_type, path, **kwargs):
36 """
~\Anaconda3\lib\site-packages\matplotlib\docstring.py in dedent_interpd(func)
~\Anaconda3\lib\site-packages\matplotlib\docstring.py in __call__(self, func)
38 def __call__(self, func):
39 if func.__doc__:
---> 40 func.__doc__ = inspect.cleandoc(func.__doc__) % self.params
41 return func
42
KeyError: 'Patch_kwdoc
不知道这个kwdoc补丁报错是怎么回事,已经重新卸载并安装matplotlib 包多次都不好使,并且matplotlib版本为3.4.1