I've spent the last 3 hours trying to install Matplotlib 0.87.6 on
Windows, with no luck. The main problem I've run into is finding a
compatible version of Numeric/Numarry/Numpy to use, and unfortanately
the website doesn't mention this detail.
I've tried installing numpy-1.0, 0.9.8, and 0.9.6, and I get some
variation of the error below when I try to import matplotlib. What
version of Numpy should Matplotlib work with?
Regards,
Chris Spencer
RuntimeError: module compiled against version 1000002 of C-API but
this version of numpy is 90709
The import of the numpy version of the _transforms module,
_ns_transforms, failed. This is is either because numpy was
unavailable when matplotlib was compiled, because a dependency of
_ns_transforms could not be satisfied, or because the build flag for
this module was turned off in setup.py. If it appears that
_ns_transforms was not built, make sure you have a working copy of
numpy and then re-install matplotlib. Otherwise, the following
traceback gives more details:
RuntimeError: module compiled against version 1000002 of C-API but
this version of numpy is 90709
The import of the numpy version of the nxutils module,
_nsnxutils, failed. This is is either because numpy was
unavailable when matplotlib was compiled, because a dependency of
_nsnxutils could not be satisfied, or because the build flag for
this module was turned off in setup.py. If it appears that
_nsnxutils was not built, make sure you have a working copy of
numpy and then re-install matplotlib. Otherwise, the following
traceback gives more details:
E
···
======================================================================
ERROR: testXOGame (__main__.TestSequenceFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_reasoning.py", line 38, in testXOGame
frame.graph(all=True)
File "z:\testing\poe\model\reasoning\reasoning.py", line 446, in graph
import pylab as P
File "C:\Program Files\Python24\Lib\site-packages\pylab.py", line 1, in ?
from matplotlib.pylab import *
File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\pylab.py", line 199, in ?
import mlab #so I can override hist, psd, etc...
File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\mlab.py", line 64, in ?
import nxutils
File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\nxutils.py", line 17, in ?
from matplotlib._ns_nxutils import *
ImportError: numpy.core.multiarray failed to import