matplotlib安装成功后引入报错问题解决

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值