简体   繁体   中英

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

I'm following a plotnine tutorial to do some plotting on Jupyter Notebook. But when I imported

from plotnine import *

I got an error: ModuleNotFoundError: No module named 'plotnine' .

I'm new on Jupyter and plotnine. Have tried different things searched, but still don't know how to solve this ...

Make sure plotnine is installed in your environment. 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
  2. write !pip install plotnine into cell
  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)

In my case everything has failed, everytime it showed no module named plotnine however, requirement was already satisfied.

My problem got resolved by this command on terminal conda install -c conda-forge plotnine

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM