简体   繁体   中英

ModuleNotFoundError: No module named 'seaborn' in jupyter notebook

I keep getting the error: ModuleNotFoundError: No module named 'seaborn' when trying to import seaborn. 在此处输入图像描述

I have installed seaborn using both pip install seaborn and conda install seaborn. 在此处输入图像描述

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? 在此处输入图像描述

EDIT :
I have tried running,pip install seaborn in the notebook. 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. 在此处输入图像描述

you might have an old version of Jupyter notebook, so need to try this command to install it in the current kernel.

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

In the New Jupyter version (2019) can be installed simply as:

%pip install seaborn

Note: Answer from different question !

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