Error "Importerror: Dll Load Failed: %1 Is Not a Valid Win32 Application"

ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL's are there

Unofficial Windows Binaries for Python Extension Packages

You can find any Python libraries from here.

ImportError: DLL load failed: %1 is not a valid Win32 application - scikit-learn+

I was able to fix it.

The way to go was 'force-reinstall'.

This was enough to get scikit-learn up and running.

pip install --upgrade --force-reinstall scipy

DLL Load failed: %1 is not a valid Win32 Application for StatsModel

Figured this out after talking it through with others who had similar problems.

Don't know if these steps were necessary but, to be sure I uninstalled Python then specifically reinstalled the 64 bit version. Then I uninstalled Anacondas and reinstalled specifically the 64 bit version. Note I believe Python defaults to a 32 bit version.

Then, despite reinstalling Anaconda, I still had the same error. So, for every package that I was getting an error from, I installed the package out of
http://www.lfd.uci.edu/~gohlke/pythonlibs/

So for me personally, I was throwing an error from statsmodels, so I installed it out of the above link.

Installation method is
1) Download correct file from above link
2) open CMD, type pip install then drag the file from the downloads folder into the CMD, and hit enter

Thank you!

Python: DLL load failed: %1 is not a valid Win32 application

You have installed a 64 bit version of numpy and are using a 32 bit version of python or vice versa. You can install a prebuilt binary from here

Error ImportError: DLL load failed: %1 is not a valid Win32 application

The ImportError message is a bit misleading because of the reference to Win32, whereas the problem was simply the OpenCV DLLs were not found.

This problem was solved by adding the path the OpenCV binaries to the Windows PATH environment variable (as an example, on my computer this path is: C:\opencv\build\bin\Release).



Related Topics



Leave a reply



Submit