Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named 'seaborn' in Python IDE

enter image description here

enter image description here

It checks the lib folder where my seaborn stuff is, but still error._.

Hi,
I have looked at other posts, but most seemed to be dealing with Jupyter notebooks, which I'm not. I was wondering how to get to use Seaborn in the basic Python IDE or in PyCharm. I read about filepath collisions stuff, but not too clear on that front.

I'm using Python 3.6 right now.

Thanks for any help!

like image 217
Anon Li Avatar asked Jan 09 '19 19:01

Anon Li


People also ask

Why is seaborn not working in Python?

Why is Seaborn not working in Jupyter or other data Visualization environments? The typical reason for this error is that the Seaborn package is simply not installed in your environment. Before starting your troubleshooting, you might want to use the command pip list to find out the packages that are installed.

How do I import my seaborn Spyder?

First open Spyder and click Tools --> Open command prompt. You should see the Command Window appear in the bottom right of your screen. Here we install the Python package seaborn as an example. This will install seaborn on your machine.


3 Answers

import pip
pip.main(['install','seaborn'])

From: https://stackoverflow.com/a/49391839

like image 121
AISWARYA RATHEESH Avatar answered Oct 22 '22 10:10

AISWARYA RATHEESH


When dealing with version ambiguity, remember that pip is a python module. Once you're confident that python is the python installation that your IDE is running, run

python --version
python -m pip install seaborn

>pip3 may be pointing to an old or different python installation.

like image 21
GiovanH Avatar answered Oct 22 '22 11:10

GiovanH


If you're doing in jupyter notebook Try doing this:

!conda install -c anaconda seaborn -y
like image 6
reddy Avatar answered Oct 22 '22 11:10

reddy