詳細信息時,在Windows 7中缺少DLL:導入錯誤:試圖導入Python模塊
的Python 3.2(32位安裝) 的Windows 7 64位
代碼引發錯誤:
from sklearn import svm
錯誤:
Traceback (most recent call last):
File "C:\Users\chrismv48\workspace\Python Datamining\Biological_Response.py", line 1, in <module>
from sklearn import svm
File "C:\Python32\lib\site-packages\sklearn\svm\__init__.py", line 13, in <module>
from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC
File "C:\Python32\lib\site-packages\sklearn\svm\classes.py", line 3, in <module>
from .base import BaseLibLinear, BaseLibSVM
File "C:\Python32\lib\site-packages\sklearn\svm\base.py", line 5, in <module>
from . import libsvm, liblinear
ImportError: DLL load failed: The specified module could not be found.
我已經嘗試了一些解決方案的其他英里提議但是沒有成功......
你是怎麼安裝sklearn包的?您是否使用了預建的64位二進制文件:http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-learn? – Mark 2012-08-11 17:57:34
32位Python需要32位擴展。確保你安裝了正確的軟件包。 – 2012-08-11 20:11:49
Chris,你能否提供一些關於你如何安裝scikit-learn的信息? – 2012-08-12 10:09:34