matplotlib是Python主要的科学绘图库,将数据及各种分析生可视化,如折线图、直方图、散点图等。安装时遇到点小问题,运行安装命令:pip3 install matplotlib ,提示安装成功了。但是引入该包时却提示错误:
ImportError Traceback (most recent call last)
Cell In[11], line 1
----> 1 import matplotlib
2 print(matplotlib.__version__)
File /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/matplotlib/__init__.py:159
155 from packaging.version import parse as parse_version
157 # cbook must import matplotlib only within function
158 # definitions, so it is safe to import from it here.
--> 159 from . import _api, _version, cbook, _docstring, rcsetup
160 from matplotlib.cbook import sanitize_sequence
161 from matplotlib._api import MatplotlibDeprecationWarning
File /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/matplotlib/rcsetup.py:28
26 from matplotlib.backends import BackendFilter, backend_registry
27 from matplotlib.cboo

2619

被折叠的 条评论
为什么被折叠?



