Home > Net >  can't import seaborn on Jupyter notebook
can't import seaborn on Jupyter notebook

Time:09-20

I have installed numpy, pandas and matplot lib but installation of seaorn i not possible. I ve tried updating Numpy, installing seaborn through the cmd command but in vain. I restarted the kernel each time.

import seaborn as sns

I keep recieving ;

 ImportError: DLL load failed while importing _arpack: The specified procedure could not be found.

I have used:

!pip install seaborn
pip install numpy --upgrade --user
pip import seaborn as sns df = sns.load_dataset(penguins) sns.pairplot(df, hue=species)

CodePudding user response:

It seems like your seaborn and/or numpy installation is broken or at least there is some versions conflict.

Try to run these commande from the command line :

pip unistall seaborn numpy
pip install mkl numpy seaborn

After that, you can run this code in your Jupyter notebook :

import seaborn as sns

df = sns.load_dataset("penguins")
sns.pairplot(df, hue="species")

enter image description here

CodePudding user response:

the problem was fixed by updating matplotlib on the conda shell.

conda update matplotlib
  • Related