python - jupyter 模块未找到错误 : No module named matplotlib

标签 python matplotlib jupyter conda

我目前正在尝试使用基本的 python - jupyter 项目。

我在 matplotlib 期间遇到以下错误:

jupyter-error 的屏幕截图 enter image description here

ModuleNotFoundError: 没有名为“ma​​tplotlib”的模块

我尝试在 conda 和 pip 中更新、重新安装 matplotlib,但它仍然无法正常工作。

对每一个建设性的反馈感到高兴

最佳答案

在笔记本的单元格中键入并执行代码:

import sys  
!{sys.executable} -m pip install --user matplotlib

重新加载内核

(来源:http://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/)

关于python - jupyter 模块未找到错误 : No module named matplotlib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42321784/

相关文章:

python - 如何在windows后台运行python脚本?

python - 如何使 3D 散点图颜色条调整到 Z 轴大小?

python - 通过 eclipse 交互式 matplotlib

javascript - 在 Jupyter Notebook 中加载 Bokeh 返回 : TypeError: a. 运算符未定义

python - pycharm 中的 Jupyter notebook 不显示内联图

python - 将代码同步到异步,无需重写函数

python - 如何在 pandas 中进行复杂的数据清理

Python 线程和 PySimpleGUI

python-2.7 - 同一图上的 Python 并排箱线图

r - 如何在 Jupyter 中启用 R 语法高亮显示?