3
我得到「ImportError:DLL加載失敗:指定的模塊找不到。」當導入模塊seaborn。Seaborn ImportError:DLL加載失敗:找不到指定的模塊
我試圖卸載都seaborn和matplotlib,然後使用
pip install seaborn
,但沒有運氣重新安裝。我仍然得到同樣的錯誤。
ImportError Traceback (most recent call last)
<ipython-input-5-085c0287ecb5> in <module>()
----> 1 import seaborn
C:\Users\johnsam\venv\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:\Users\johnsam\venv\lib\site-packages\seaborn\rcmod.py in <module>()
6 import matplotlib as mpl
7
----> 8 from . import palettes, _orig_rc_params
9
10
C:\Users\johnsam\venv\lib\site-packages\seaborn\palettes.py in <module>()
10 from .external.six.moves import range
11
---> 12 from .utils import desaturate, set_hls_values, get_color_cycle
13 from .xkcd_rgb import xkcd_rgb
14 from .crayons import crayons
C:\Users\johnsam\venv\lib\site-packages\seaborn\utils.py in <module>()
6
7 import numpy as np
----> 8 from scipy import stats
9 import pandas as pd
10 import matplotlib as mpl
C:\Program Files\Continuum\Anaconda3\lib\site-packages\scipy\stats\__init__.py in <module>()
332 from __future__ import division, print_function, absolute_import
333
--> 334 from .stats import *
335 from .distributions import *
336 from .rv import *
C:\Program Files\Continuum\Anaconda3\lib\site-packages\scipy\stats\stats.py in <module>()
179 from scipy.lib.six import callable, string_types
180 from numpy import array, asarray, ma, zeros, sum
--> 181 import scipy.special as special
182 import scipy.linalg as linalg
183 import numpy as np
C:\Program Files\Continuum\Anaconda3\lib\site-packages\scipy\special\__init__.py in <module>()
544 from __future__ import division, print_function, absolute_import
545
--> 546 from ._ufuncs import *
547
548 from .basic import *
ImportError: DLL load failed: The specified module could not be found.
有沒有辦法來解決這個錯誤?
什麼模塊不能找到? – MLavrentyev
進口seaborn會給我一個錯誤 – Ariel
嗯,你使用'進口Seaborn'還是'import seaborn'?第一個不適用於我,第二個適用於Python 3.6.0。 @Ariel – MLavrentyev