简体   繁体   English

获取 ModuleNotFoundError:在 Jupyter Notebook 上导入时没有名为“plotnine”的模块

[英]Getting ModuleNotFoundError: No module named 'plotnine' when import on Jupyter Notebook

I'm following a plotnine tutorial to do some plotting on Jupyter Notebook.我正在按照 plotnine 教程在 Jupyter Notebook 上做一些绘图。 But when I imported但是当我导入时

from plotnine import *

I got an error: ModuleNotFoundError: No module named 'plotnine' .我收到一个错误: ModuleNotFoundError: No module named 'plotnine'

I'm new on Jupyter and plotnine.我是 Jupyter 和 plotnine 的新手。 Have tried different things searched, but still don't know how to solve this ...尝试了不同的东西搜索,但仍然不知道如何解决这个问题......

Make sure plotnine is installed in your environment.确保在您的环境中安装了plotnine Without more information about your environment, I can't give you a definitive answer, but this might work如果没有关于你的环境的更多信息,我无法给你一个明确的答案,但这可能有效

  1. make a new empty cell in jupyter在 jupyter 中创建一个新的空单元格
  2. write !pip install plotnine into cell!pip install plotnine写入单元格
  3. execute cell执行单元格

This should install plotnine and you can use it from now one (and you can delete the cell, plotnine is now a permanent part of your environment)这应该安装plotnine并且您可以从现在开始使用它(并且您可以删除单元格,plotnine 现在是您环境的永久部分)

In my case everything has failed, everytime it showed no module named plotnine however, requirement was already satisfied.在我的情况下,一切都失败了,但是每次它都没有显示名为 plotnine 的模块时,要求已经得到满足。

My problem got resolved by this command on terminal conda install -c conda-forge plotnine我的问题通过终端conda install -c conda-forge plotnine上的命令解决了

source link : https://anaconda.org/conda-forge/plotnine源链接: https : //anaconda.org/conda-forge/plotnine

暂无
暂无

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

相关问题 进入 Jupyter 笔记本:ModuleNotFoundError:没有名为“podman”的模块 - Getting in Jupyter notebook: ModuleNotFoundError: No module named 'podman' Spark 错误:“ModuleNotFoundError: No module named 'notebook'”即使安装了 jupyter - Spark Error: “ModuleNotFoundError: No module named 'notebook'” even when jupyter is installed 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 上没有名为“pandas”的模块 - ModuleNotFoundError: No module named 'pandas' on Jupyter Notebook ModuleNotFoundError:jupyter 笔记本中没有名为“deeppavlov”的模块 - ModuleNotFoundError: No module named 'deeppavlov' in jupyter notebook ModuleNotFoundError:Jupyter Notebook 没有名为“keras”的模块 - ModuleNotFoundError: No module named 'keras' for Jupyter Notebook Jupyter 笔记本:ModuleNotFoundError:没有名为“sqlalchemy”的模块 - Jupyter Notebook : ModuleNotFoundError: No module named 'sqlalchemy' Jupyter 笔记本错误 ModuleNotFoundError:没有名为“datascience”的模块 - Jupyter notebook error ModuleNotFoundError: No module named 'datascience' ModuleNotFoundError:jupyter 笔记本上没有名为“web3”的模块 - ModuleNotFoundError: No module named 'web3' on jupyter notebook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM