DLL加载失败:找不到指定的模块[Python]



不确定问题是什么…

但是许多分类器现在将无法在我的机器上工作。

我刚刚安装了scikit learn的14.1版本。这可能是路径问题吗?

Traceback (most recent call last):
  File "hashtag.py", line 19, in <module>
    from sklearn.linear_model import SGDClassifier
  File "C:Anacondalibsite-packagesscikit_learn-0.14.1-py2.7-win-amd64.eggsk
learnlinear_model__init__.py", line 24, in <module>
    from .logistic import LogisticRegression
  File "C:Anacondalibsite-packagesscikit_learn-0.14.1-py2.7-win-amd64.eggsk
learnlinear_modellogistic.py", line 5, in <module>
    from ..svm.base import BaseLibLinear
  File "C:Anacondalibsite-packagesscikit_learn-0.14.1-py2.7-win-amd64.eggsk
learnsvm__init__.py", line 13, in <module>
    from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC
  File "C:Anacondalibsite-packagesscikit_learn-0.14.1-py2.7-win-amd64.eggsk
learnsvmclasses.py", line 1, in <module>
    from .base import BaseLibLinear, BaseSVC, BaseLibSVM
  File "C:Anacondalibsite-packagesscikit_learn-0.14.1-py2.7-win-amd64.eggsk
learnsvmbase.py", line 8, in <module>
    from . import libsvm, liblinear
**ImportError: DLL load failed: The specified module could not be found.**
C:UsersOwner>

提前感谢您的帮助。

我用解决了这个问题

pip install scipy -U

可能conda配方/包中存在错误。你可以尝试用更新conda和anaconda

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

如果这不起作用,修复问题,你也可以尝试:

conda remove scikit-learn
conda install scikit-learn

相关内容

  • 没有找到相关文章

最新更新