请问执行pip 命令时这个报错是为什么啊

img

安装dash_bootstrap_conponents时报错,卸载matplotlib时也报错

  Traceback (most recent call last):
    File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site.py", line 186, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 568, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader

请问是哪里出现了问题

升级一下pip版本试试,或者使用pip3

分别运行一下命令
pip show matplotlib
python -m pip show matplotlib
看看有啥提示

可能是pip 出了问题