python - Error when calling scikit-learn using AMD64 build of Scipy on Windows -
i getting error on line:
from sklearn.ensemble import randomforestclassifier
the error log is:
traceback (most recent call last): file "c:\workspace\kaggledigits\kaggledigits.py", line 5, in <module> sklearn.ensemble import randomforestclassifier file "c:\python27\lib\site-packages\sklearn\ensemble\__init__.py", line 7, in <module> .forest import randomforestclassifier file "c:\python27\lib\site-packages\sklearn\ensemble\forest.py", line 47, in <module> ..feature_selection.selector_mixin import selectormixin file "c:\python27\lib\site-packages\sklearn\feature_selection\__init__.py", line 7, in <module> .univariate_selection import chi2 file "c:\python27\lib\site-packages\sklearn\feature_selection\univariate_selection.py", line 13, in <module> scipy import stats file "c:\python27\lib\site-packages\scipy\stats\__init__.py", line 320, in <module> .stats import * file "c:\python27\lib\site-packages\scipy\stats\stats.py", line 241, in <module> import scipy.special special file "c:\python27\lib\site-packages\scipy\special\__init__.py", line 529, in <module> ._ufuncs import * importerror: dll load failed: specified module not found.
after installing:
- python 2.7.4 windows x86-64
- scipy-0.12.0.win-amd64-py2.7.exe (from here)
- numpy-unoptimized-1.7.1.win-amd64-py2.7.exe (from here)
- scikit-learn-0.13.1.win-amd64-py2.7.exe (from here)
anybody know why happening , how solve ?
as christoph gohlke mentioned on download page, scikit-learn downloadable website requires numpy-mkl. therefore made mistake using numpy-unoptimized.
the link numpy-mkl statically linked intel's mkl , therefore not need additional download (no need download intel's mkl).
Comments
Post a Comment