1

不知道是什么问题...

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

我刚刚安装了 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>

提前感谢您的帮助。

4

2 回答 2

3

我用

pip install scipy -U
于 2018-01-06T14:29:43.163 回答
2

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

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

如果这不能解决问题,您也可以尝试:

conda remove scikit-learn
conda install scikit-learn
于 2013-12-03T09:20:36.957 回答