gpt4 book ai didi

python - 安装后没有名为 matplotlib 的模块

转载 作者:太空宇宙 更新时间:2023-11-03 14:44:27 25 4
gpt4 key购买 nike

我正在尝试使用 matplotlib,但没有成功。

要安装,我输入了

pip install matplotlib

安装后我检查了 pip 列表,并且 matplotlib 在列表中。 2.0.2

然后我尝试使用

导入它
import matplotlib.pyplot as plt 

我收到错误“没有名为 matplotlib 的模块”

我完全不知道任何帮助,我们将不胜感激。

最佳答案

我现在遇到了同样的问题,并通过以下方式解决了:

  1. pip 卸载 matplotlib
  2. sudo apt-get install python-matplotlib

关于python - 安装后没有名为 matplotlib 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46355926/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com