[英]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如果没有关于你的环境的更多信息,我无法给你一个明确的答案,但这可能有效
!pip install plotnine
into cell!pip install plotnine
写入单元格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.