DLL加载失败:指定的模块找不到[Python的](DLL Load Failed: The spe

2019-10-19 01:37发布

不知道是什么问题...

......但许多分类不会在我的机器上现在的工作。

我刚刚安装的scikit学习14.1版本。 难道这是一个路径的事情吗?

Traceback (most recent call last):
  File "hashtag.py", line 19, in <module>
    from sklearn.linear_model import SGDClassifier
  File "C:\Anaconda\lib\site-packages\scikit_learn-0.14.1-py2.7-win-amd64.egg\sk
learn\linear_model\__init__.py", line 24, in <module>
    from .logistic import LogisticRegression
  File "C:\Anaconda\lib\site-packages\scikit_learn-0.14.1-py2.7-win-amd64.egg\sk
learn\linear_model\logistic.py", line 5, in <module>
    from ..svm.base import BaseLibLinear
  File "C:\Anaconda\lib\site-packages\scikit_learn-0.14.1-py2.7-win-amd64.egg\sk
learn\svm\__init__.py", line 13, in <module>
    from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC
  File "C:\Anaconda\lib\site-packages\scikit_learn-0.14.1-py2.7-win-amd64.egg\sk
learn\svm\classes.py", line 1, in <module>
    from .base import BaseLibLinear, BaseSVC, BaseLibSVM
  File "C:\Anaconda\lib\site-packages\scikit_learn-0.14.1-py2.7-win-amd64.egg\sk
learn\svm\base.py", line 8, in <module>
    from . import libsvm, liblinear
**ImportError: DLL load failed: The specified module could not be found.**

C:\Users\Owner>

预先感谢您在您的帮助。

Answer 1:

也许有在畅达配方/包的bug。 你可以尝试更新畅达和水蟒有:

conda update conda  # update the updater :)
conda update anaconda

如果不起作用解决该问题,你也可以尝试:

conda remove scikit-learn
conda install scikit-learn


Answer 2:

我解决了这个问题与

pip install scipy -U


文章来源: DLL Load Failed: The specified module could not be found [Python]