I installed matplotlib using the Mac disk image installer for MacOS 10.5 and Python 2.5. I installed numpy then tried to import matplotlib but got this error: ImportError: numpy 1.1 or later is required; you have 2.0.0.dev8462. It seems to that version 2.0.0.dev8462 would be later than version 1.1 but I am guessing that matplotlib got confused with the “.dev8462” in the version. Is there any workaround to this?
I installed matplotlib using the Mac disk image installer for MacOS 10.5 and Python
Share
Here is the troublesome code located in
Lib/site-packages/matplotlib/__init__.pyin my python distribution on WindowsThe problem is that it is requiring both the first to digits (separated by periods) to be greater than or equal to 1 and in your case the second digit is a 2. You can get around this in a number of ways, but one way is to change the if statement to
or you could just change it to:
which might be better.