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
Delete File from Zipfile with the Zipfile Module
Keras Sequential Model Input Layer
Extension Method for Python Built-In Types
Saving the State of a Program to Allow It to Be Resumed
Failed to Upload Packages to Pypi: 410 Gone
How Could I Use Batch Normalization in Tensorflow
Tensorflow: How to Replace or Modify Gradient
Why Is Exponentiation Applied Right to Left
How Does Python Importing Exactly Work
Get Last Result in Interactive Python Shell
How to Rotate Xticklabels in Matplotlib So That the Spacing Between Each Xticklabel Is Equal
Image Segmentation Based on Edge Pixel Map
Difference Between the Built-In Pow() and Math.Pow() for Floats, in Python
How to Read File with Space Separated Values in Pandas