ImportError:DLL加载失败:sklearn,Anaconda

时间:2017-10-26 08:25:15

标签: python numpy scikit-learn anaconda

我和ImportError: DLL load failed: The specified module could not be found (sklearn)有同样的问题,但我使用的是Anaconda。我得到的错误是在底部。有没有办法在不破坏我的Anaconda安装的情况下单独卸载/重新安装?

我尝试卸载并重新安装scikit-learn。我即将开始卸载并重新安装mkl和numpy,但这样做会卸载一大堆其他软件包,此时我可能最好从头开始重新安装Anaconda。除非不能保证,如果我这样做,我再也不会再遇到同样的问题了。

值得注意的是,我有第二台安装了Anaconda的计算机工作正常,因此它必须是我的安装特有的问题,但我无法设法修复它。

 File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile
    execfile(filename, namespace)

  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "C:/Users/shaff/Desktop/TUM Sync Folder/Machine Learning/1-decisiontrees and kNN/HW1.py", line 4, in <module>
    from sklearn import model_selection

  File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\__init__.py", line 134, in <module>
    from .base import clone

  File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\base.py", line 13, in <module>
    from .utils.fixes import signature

  File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\__init__.py", line 11, in <module>
    from .validation import (as_float_array,

  File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\validation.py", line 18, in <module>
    from ..utils.fixes import signature

  File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\fixes.py", line 144, in <module>
    from scipy.sparse.linalg import lsqr as sparse_lsqr  # noqa

  File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\sparse\linalg\__init__.py", line 113, in <module>
    from .isolve import *

  File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\sparse\linalg\isolve\__init__.py", line 6, in <module>
    from .iterative import *

  File "C:\ProgramData\Anaconda3\lib\site-packages\scipy\sparse\linalg\isolve\iterative.py", line 7, in <module>
    from . import _iterative

ImportError: DLL load failed: The specified module could not be found.

0 个答案:

没有答案