简体   繁体   English

ModuleNotFoundError:jupyter 笔记本中没有名为“seaborn”的模块

[英]ModuleNotFoundError: No module named 'seaborn' in jupyter notebook

I keep getting the error: ModuleNotFoundError: No module named 'seaborn' when trying to import seaborn.我不断收到错误消息:ModuleNotFoundError:尝试导入 seaborn 时没有名为“seaborn”的模块。 在此处输入图像描述

I have installed seaborn using both pip install seaborn and conda install seaborn.我已经安装了 seaborn,同时使用 pip 安装 seaborn 和 conda 安装 ZD50F4346ZDA63。 在此处输入图像描述

I saw on seaborn that I am not the only one who has had this issue, but I have not been able to resolve this problem, how can I check and updated that my pip/conda points to the same installation as my interpreter?我在 seaborn 上看到我不是唯一遇到此问题的人,但我无法解决此问题,如何检查并更新我的 pip/conda 指向与我的解释器相同的安装? 在此处输入图像描述

EDIT :编辑
I have tried running,pip install seaborn in the notebook.我试过运行,pip 在笔记本上安装 seaborn。 but this still does not work.但这仍然不起作用。 I have also created my own conda env and installed seaborn (it shows base in the photos) but this also did not work.我还创建了自己的 conda env 并安装了 seaborn (它在照片中显示了基础),但这也没有用。 在此处输入图像描述

you might have an old version of Jupyter notebook, so need to try this command to install it in the current kernel.您可能有旧版本的 Jupyter 笔记本,因此需要尝试使用此命令将其安装在当前的 kernel 中。

import sys
!{sys.executable} -m pip install seaborn

In the New Jupyter version (2019) can be installed simply as:在新的 Jupyter 版本(2019)中,可以简单地安装为:

%pip install seaborn

Note: Answer from different question !注意:从不同的问题回答

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ModuleNotFoundError:没有名为“seaborn”的模块。 在线 jupyter 笔记本 - ModuleNotFoundError: No module named 'seaborn'. online jupyter notebook Jupyter Notebook ModuleNotFoundError->没有名为'sql'的模块 - Jupyter Notebook ModuleNotFoundError --> No module named 'sql' ModuleNotFoundError:Jupyter Notebook 上没有名为“_tkinter”的模块 - ModuleNotFoundError: No module named '_tkinter' on Jupyter Notebook ModuleNotFoundError:在jupyter笔记本python中没有名为“可视化”的模块 - ModuleNotFoundError: No module named 'visualization' in jupyter notebook python Jupyter 笔记本:ModuleNotFoundError:没有名为“scipy”的模块 - Jupyter notebook: ModuleNotFoundError: No module named 'scipy' (Jupyter Notebook) ModuleNotFoundError: No module named 'pandas' - (Jupyter Notebook) ModuleNotFoundError: No module named 'pandas' ModuleNotFoundError:没有名为“pandas”的模块(jupyter notebook) - ModuleNotFoundError: No module named 'pandas' (jupyter notebook) ModuleNotFoundError:Jupyter Notebook 中没有名为“tensorflow”的模块 - ModuleNotFoundError: No module named 'tensorflow' In Jupyter Notebook ModuleNotFoundError:Jupyter Notebook 没有名为“keras”的模块 - ModuleNotFoundError: No module named 'keras' for Jupyter Notebook 进入 Jupyter 笔记本:ModuleNotFoundError:没有名为“podman”的模块 - Getting in Jupyter notebook: ModuleNotFoundError: No module named 'podman'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM