Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seaborn is not importing #136

Open
j7sai opened this issue Apr 10, 2018 · 2 comments
Open

seaborn is not importing #136

j7sai opened this issue Apr 10, 2018 · 2 comments

Comments

@j7sai
Copy link

j7sai commented Apr 10, 2018

import seaborn as sns
no module named as seaborn
/
this error even after installing in conda install seaborn
can anybody fix this

@neilsaxena
Copy link

You can try installing seaborn library in your python script using following code:

import conda.cli

conda.cli.main('conda', 'install', '-y', 'seaborn')

You can also do it by using pip but ensure that the version of pip is not 10.0.0 as the new version doesn't support pip.main() any more.For installing seaborn library using pip you can write the following code in your python script.

import pip

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

One more thing for installing seaborn library it is a mandatory requirement that numpy,pandas,matplotlib and scipy libraries are already installed in your computer.

You can also check following link for more information

https://seaborn.pydata.org/installing.html

@BrunaFortunato-eng
Copy link

run on jupyter notebook !pip install seaborn or !pip3 install seaborn (if you use python3.X)

th-shristi added a commit to th-shristi/PythonDataScienceHandbook that referenced this issue Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants