问题描述
已更新为新的Anaconda 2018,打开了在更新之前可以使用的jupyter笔记本.在将seaborn加载到脚本中时遇到问题.尝试了以下几个线程,但没有任何效果.
Updated to new Anaconda 2018, opened a jupyter notebook that worked prior to the update. Having problems with loading seaborn into the script. Tried following several threads on this but nothing worked question.
我尝试过:
-设置环境变量
-重新安装Anaconda2018
-Reinstalling Anaconda2018
-使用conda卸载并重新安装了seaborn
-Uninstalled and reinstalled seaborn using conda
-重新安装的SciPy
-Reinstalled SciPy
用尽所有选项,因为我想使用Seaborn 0.9.0和python-3.7,但我似乎无法获得3.7才能使用0.9.0.帮助?
Running out of options as I want to use Seaborn 0.9.0 and python-3.7 but I cannot seem to get 3.7 to play with 0.9.0. Help?
import seaborn as sns
ImportError Traceback (most recent call last)
<ipython-input-1-a84c0541e888> in <module>
----> 1 import seaborn as sns
~\Anaconda3\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 *
~\Anaconda3\lib\site-packages\seaborn\rcmod.py in <module>
3 import functools
4 import matplotlib as mpl
----> 5 from . import palettes, _orig_rc_params
6
7
~\Anaconda3\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 .colors import xkcd_rgb, crayons
14
~\Anaconda3\lib\site-packages\seaborn\utils.py in <module>
5
6 import numpy as np
----> 7 from scipy import stats
8 import pandas as pd
9 import matplotlib as mpl
~\Anaconda3\lib\site-packages\scipy\stats\__init__.py in <module>
343 from __future__ import division, print_function, absolute_import
344
--> 345 from .stats import *
346 from .distributions import *
347 from .morestats import *
~\Anaconda3\lib\site-packages\scipy\stats\stats.py in <module>
169 import scipy.special as special
170 import scipy.linalg as linalg
--> 171 from . import distributions
172 from . import mstats_basic
173 from ._distn_infrastructure import _lazywhere
~\Anaconda3\lib\site-packages\scipy\stats\distributions.py in <module>
8 from __future__ import division, print_function, absolute_import
9
---> 10 from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
11 rv_frozen)
12
~\Anaconda3\lib\site-packages\scipy\stats\_distn_infrastructure.py in <module>
22
23 # for root finding for discrete distribution ppf, and max likelihood estimation
---> 24 from scipy import optimize
25
26 # for functions of continuous distributions (e.g. moments, entropy, cdf)
~\Anaconda3\lib\site-packages\scipy\optimize\__init__.py in <module>
269
270 from .optimize import *
--> 271 from ._minimize import *
272 from ._root import *
273 from .minpack import *
~\Anaconda3\lib\site-packages\scipy\optimize\_minimize.py in <module>
19 from scipy._lib.six import callable
20
---> 21 from scipy.sparse.linalg import LinearOperator
22
23 # unconstrained minimization
~\Anaconda3\lib\site-packages\scipy\sparse\linalg\__init__.py in <module>
115 from .dsolve import *
116 from .interface import *
--> 117 from .eigen import *
118 from .matfuncs import *
119 from ._onenormest import *
~\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\__init__.py in <module>
9 from __future__ import division, print_function, absolute_import
10
---> 11 from .arpack import *
12 from .lobpcg import *
13
~\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\__init__.py in <module>
20 from __future__ import division, print_function, absolute_import
21
---> 22 from .arpack import *
~\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py in <module>
43 __all__ = ['eigs', 'eigsh', 'svds', 'ArpackError', 'ArpackNoConvergence']
44
---> 45 from . import _arpack
46 import numpy as np
47 import warnings
ImportError: DLL load failed: The specified procedure could not be found.
任何关于如何改善我的问题的技巧也将受到欢迎,因为我想更好地提出这些问题.
Any Tips on how to make my question better would also be welcomed as I want to get better at asking these questions.
推荐答案
今天早上我也遇到了同样的问题,对此感到困惑……..
I have met the same problem and be puzzled by it either this morning........
通过仔细检查回溯----> 4从scipy.sparse.linalg导入LinearOperator
By carefully checking the Traceback----> 4 from scipy.sparse.linalg import LinearOperator
这是科学的问题,而不是天生的问题.
It's the issue of scipy, not seaborn.
我尝试卸载conda版本并安装 scipy和numpy 的pip版本,现在可以使用了.请尝试一下,希望它也能对您有所帮助.
I try to uninstall conda versions and install pip versions scipy and numpy, it works now. please have a try, hopefully it could help u too.
$> conda remove --force numpy, scipy
$> pip install numpy
$> pip install scipy
这篇关于如何解决:"ImportError:DLL加载失败,找不到指定的过程." DLL在那里时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!