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

The error that you are getting is because you have installed the wrong component of matplotlib (there are the 32 bit and 64 bit components).

This page provides you all binaries (32bit,64bit) for Windows. It also includes other packages apart from matplotlib if you may be needing them in the future.

Try installing the proper version for your computer and it should work.

Also don’t forget to check whether the Python version you are using is suitable for your computer (32bit or 64bit)

So the problem you are facing is one of these:

  • You have a 32 bit system, but you have installed the 64 bit component of matplotlib
  • You have a 64 bit system, but you have installed the 32 bit component of matplotlib
  • You have a 32 bit system, but you have installed the 64 bit component of Python itself
  • You have a 64 bit system, but you have installed the 32 but component of Python itself

If you are not sure about how your computer’s processor handles information, please check THIS WEBSITE

To check which version of python you have installed, refer TO THIS QUESTION IN STACKOVERFLOW

Leave a Comment