Using modules in Jupyter Notebook

Hey!
I’ve installed a number of libraries through shell but some won’t load in Jupyter notebook.
Here is my installed list:
cycler 0.10.0
joblib 0.16.0
kiwisolver 1.2.0
matplotlib 3.3.0
numpy 1.19.1
pandas 1.0.5
Pillow 7.2.0
pip 20.1.1
pyparsing 2.4.7
python-dateutil 2.8.1
pytz 2020.1
scikit-learn 0.23.1
scipy 1.5.2
seaborn 0.10.1
setuptools 47.1.0
six 1.15.0
sklearn 0.0
threadpoolctl 2.1.0

sklearn and seaborn specifically will not load in Jupyter, I keep getting the message:
“ModuleNotFoundError: No module named ‘sklearn’”. Same thing for seaborn.
This library shows up in my list as you can see, and when I try to install it again I get a message saying that I already have it installed.
How can I fix this?
Thanks!

  • Ian

I’d guess that Jupyter-notebooks is running in a different envionment to the one you have intalled those packages in (note that it’s not even in the list). DId you install it through conda or something?

2 Likes

I installed all of the packages through Bash originally. I just tried installing seaborn and sklearn through conda and now they are both working!
Thanks for the help,

Ian