Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
420 views
in Technique[技术] by (71.8m points)

python 3.x - How to Fix: "ImportError: DLL load failed The specified procedure could not be found." when the DLLs are there

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.

I've tried:

-Setting Enviromental Variables

-Reinstalling Anaconda2018

-Uninstalled and reinstalled seaborn using conda

-Reinstalled SciPy

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

  ~Anaconda3libsite-packagesseaborn\__init__.py in <module>
  4 
  5 # Import seaborn objects
  ----> 6 from .rcmod import *
  7 from .utils import *
  8 from .palettes import *

  ~Anaconda3libsite-packagesseaborn
cmod.py in <module>
  3 import functools
  4 import matplotlib as mpl
  ----> 5 from . import palettes, _orig_rc_params
  6 
  7 

  ~Anaconda3libsite-packagesseabornpalettes.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 

  ~Anaconda3libsite-packagesseabornutils.py in <module>
  5 
  6 import numpy as np
  ----> 7 from scipy import stats
  8 import pandas as pd
  9 import matplotlib as mpl

  ~Anaconda3libsite-packagesscipystats\__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 *

  ~Anaconda3libsite-packagesscipystatsstats.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

  ~Anaconda3libsite-packagesscipystatsdistributions.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 

  ~Anaconda3libsite-packagesscipystats\_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)

  ~Anaconda3libsite-packagesscipyoptimize\__init__.py in <module>
  269 
  270 from .optimize import *
  --> 271 from ._minimize import *
  272 from ._root import *
  273 from .minpack import *

  ~Anaconda3libsite-packagesscipyoptimize\_minimize.py in <module>
  19 from scipy._lib.six import callable
  20 
  ---> 21 from scipy.sparse.linalg import LinearOperator
  22 
  23 # unconstrained minimization

  ~Anaconda3libsite-packagesscipysparselinalg\__init__.py in <module>
  115 from .dsolve import *
  116 from .interface import *
  --> 117 from .eigen import *
  118 from .matfuncs import *
  119 from ._onenormest import *

  ~Anaconda3libsite-packagesscipysparselinalgeigen\__init__.py in <module>
  9 from __future__ import division, print_function, absolute_import
  10 
  ---> 11 from .arpack import *
  12 from .lobpcg import *
  13 

  ~Anaconda3libsite-packagesscipysparselinalgeigenarpack\__init__.py in <module>
  20 from __future__ import division, print_function, absolute_import
  21 
  ---> 22 from .arpack import *

  ~Anaconda3libsite-packagesscipysparselinalgeigenarpackarpack.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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I have met the same problem and be puzzled by it either this morning........

By carefully checking the Traceback ----> 4 from scipy.sparse.linalg import LinearOperator

It's the issue of scipy, not seaborn.

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...