Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import Error: Missing DLL on Windows 7 when trying to import Python module

Details:

Python 3.2 (32 bit install) Windows 7 64 bit

Code inducing the error:

from sklearn import svm

Error:

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.

I've tried some of the solutions proposed in other missing DLL threads, but with no success...

like image 497
ChrisArmstrong Avatar asked Nov 29 '22 14:11

ChrisArmstrong


1 Answers

In case you are using the binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-learn. They require numpy-MKL, as indicated on the download page. The official numpy binaries won't work.

like image 112
cgohlke Avatar answered Dec 06 '22 17:12

cgohlke