![ModuleNotFoundError:没有名为“matplotlib”的模块](https://linux22.com/image/1168840/ModuleNotFoundError%EF%BC%9A%E6%B2%A1%E6%9C%89%E5%90%8D%E4%B8%BA%E2%80%9Cmatplotlib%E2%80%9D%E7%9A%84%E6%A8%A1%E5%9D%97.png)
我无法在 jupyter 笔记本中绘制图表。它显示:“ModuleNotFoundError:没有名为‘matplotlib’的模块”,尽管我已经安装了 matplotlib。
我的操作系统是 Ubuntu 18.04。
(顺便说一句,我注意到我的 /usr/lib 中有几个 python 版本,例如 python2.7、python3;3.6;3.7。)
答案1
尝试为 python3 安装 matplotlib
例如:
sudo pip3 install matplotlib
我无法在 jupyter 笔记本中绘制图表。它显示:“ModuleNotFoundError:没有名为‘matplotlib’的模块”,尽管我已经安装了 matplotlib。
我的操作系统是 Ubuntu 18.04。
(顺便说一句,我注意到我的 /usr/lib 中有几个 python 版本,例如 python2.7、python3;3.6;3.7。)
尝试为 python3 安装 matplotlib
例如:
sudo pip3 install matplotlib