不确定问题是什么......
...但是现在很多分类器都无法在我的机器上运行。
我刚刚安装了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>
在你的帮助下提前感谢你。
答案 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