Reputation:
I've installed the package using conda install seaborn
in my terminal. This stated that the package was already installed.
When I try to import Seaborn into my editor (I'm using Canopy) and run a simple program, I am met with the following error:
ImportError: No module named seaborn.
What is the reason for this and how can I solve it?
Upvotes: 0
Views: 6693
Reputation: 266
Try this!! Include this in your code and wait for package to be downloaded. I was pretty tired of not being able to download and install a new package and this worked for me-
import pip
pip.main(['install','seaborn'])
I got to know this from a youtube video-https://www.youtube.com/watch?v=7ExwdL770ZM
It works like a charm for me.
Upvotes: 6
Reputation: 23
try using
pip3 install seaborn
I had the same issue, I'm using Rodeo. This worked for me.
Upvotes: 2
Reputation: 864
I don't know about conda but it probably installed Seaborn in a directory other than Python's directory. Try installing it with pip instead.
pip install Seaborn
Upvotes: 2
Reputation: 16515
Your anaconda-based installation of Python is not the same as the one Canopy uses. Try using Canopy's package manager:
enpkg seaborn
Upvotes: 0