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

More details:

Python 3.2 (32-bit installation) Windows 7 64-bit

Error code:

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 tried some of the suggested solutions in other skipped dll threads, but without success ...

+4
source share
4 answers

If you are using 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 will not work.

+23
source

You can run Process Monitor and watch the LoadImage events from your python process to see that LoadImage failed to load.

You might want to use procmon gui, but here is a good link to use it from the command line .

+1
source

You can use Dependency Walker to scan your module for dependencies and satisfy them.

-2
source

I did a lot of Google searches, asked people and for a long time tried to find a DLL (from sklearn import svm) using Windows7 64bit Finally, after updating the version of Anaconda, everything turned out fine.

-2
source

All Articles