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

时间:2013-12-01 03:38:40

标签: python dll scikit-learn anaconda conda

不确定问题是什么......

...但是现在很多分类器都无法在我的机器上运行。

我刚刚安装了scikit-learn版本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>

在你的帮助下提前感谢你。

2 个答案:

答案 0 :(得分:2)

conda配方/包装中可能存在错误。您可以尝试使用以下命令更新conda和anaconda:

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

如果无法解决问题,您也可以尝试:

conda remove scikit-learn
conda install scikit-learn

答案 1 :(得分:1)

我用

解决了这个问题
pip install scipy -U