Can not import seaborn on jupyter notebook

Hello, I’m currently studiyng the data science path, some of the exercises require the seaborn package. I installed jupyter notebook as it is explained on this link then I used conda install seaborn . However, when I try to import the package, the following message is received:

import seaborn as sns

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-a84c0541e888> in <module>
----> 1 import seaborn as sns

C:\Miniconda3\lib\site-packages\seaborn\__init__.py in <module>
      4 
      5 # Import seaborn objects
----> 6 from .rcmod import *
      7 from .utils import *
      8 from .palettes import *

C:\Miniconda3\lib\site-packages\seaborn\rcmod.py in <module>
      5 import matplotlib as mpl
      6 from cycler import cycler
----> 7 from . import palettes, _orig_rc_params
      8 
      9 

C:\Miniconda3\lib\site-packages\seaborn\palettes.py in <module>
      7 from .external import husl
      8 
----> 9 from .utils import desaturate, set_hls_values, get_color_cycle
     10 from .colors import xkcd_rgb, crayons
     11 

C:\Miniconda3\lib\site-packages\seaborn\utils.py in <module>
      4 
      5 import numpy as np
----> 6 from scipy import stats
      7 import pandas as pd
      8 import matplotlib as mpl

C:\Miniconda3\lib\site-packages\scipy\stats\__init__.py in <module>
    386 
    387 """
--> 388 from .stats import *
    389 from .distributions import *
    390 from .morestats import *

C:\Miniconda3\lib\site-packages\scipy\stats\stats.py in <module>
    178 import scipy.special as special
    179 from scipy import linalg
--> 180 from . import distributions
    181 from . import mstats_basic
    182 from ._stats_mstats_common import (_find_repeats, linregress, theilslopes,

C:\Miniconda3\lib\site-packages\scipy\stats\distributions.py in <module>
      6 #       instead of `git blame -Lxxx,+x`.
      7 #
----> 8 from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
      9                                     rv_frozen)
     10 

C:\Miniconda3\lib\site-packages\scipy\stats\_distn_infrastructure.py in <module>
     21 
     22 # for root finding for continuous distribution ppf, and max likelihood estimation
---> 23 from scipy import optimize
     24 
     25 # for functions of continuous distributions (e.g. moments, entropy, cdf)

C:\Miniconda3\lib\site-packages\scipy\optimize\__init__.py in <module>
    385 """
    386 
--> 387 from .optimize import *
    388 from ._minimize import *
    389 from ._root import *

C:\Miniconda3\lib\site-packages\scipy\optimize\optimize.py in <module>
     34                          line_search_wolfe2 as line_search,
     35                          LineSearchWarning)
---> 36 from ._numdiff import approx_derivative
     37 from scipy._lib._util import getfullargspec_no_self as _getfullargspec
     38 from scipy._lib._util import MapWrapper

C:\Miniconda3\lib\site-packages\scipy\optimize\_numdiff.py in <module>
      4 from numpy.linalg import norm
      5 
----> 6 from scipy.sparse.linalg import LinearOperator
      7 from ..sparse import issparse, csc_matrix, csr_matrix, coo_matrix, find
      8 from ._group_columns import group_dense, group_sparse

C:\Miniconda3\lib\site-packages\scipy\sparse\linalg\__init__.py in <module>
    112 from .dsolve import *
    113 from .interface import *
--> 114 from .eigen import *
    115 from .matfuncs import *
    116 from ._onenormest import *

C:\Miniconda3\lib\site-packages\scipy\sparse\linalg\eigen\__init__.py in <module>
      7 
      8 """
----> 9 from .arpack import *
     10 from .lobpcg import *
     11 

C:\Miniconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\__init__.py in <module>
     18 
     19 """
---> 20 from .arpack import *

C:\Miniconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py in <module>
     41 __all__ = ['eigs', 'eigsh', 'svds', 'ArpackError', 'ArpackNoConvergence']
     42 
---> 43 from . import _arpack
     44 arpack_int = _arpack.timing.nbx.dtype
     45 

ImportError: DLL load failed: No se encontró el proceso especificado.


How do I fix it?

@cloudcoder29498 did you install seaborn after your jupyter notebook was open? You should try restarting the notebook kernel (Kernel -> Restart at the top of your notebook. If that doesn’t work, uninstall seaborn and reinstall it, then restart kernel again. This usually takes care of this error from what I know.

1 Like