[Numpy-discussion] ImportError: No module named ma
John Harrold
john.m.harrold at gmail.com
Tue Oct 7 15:40:25 EDT 2008
Sometime in October, St?fan van der Walt proposed the following:
| Could you give us the version of NumPy that you are using?
|
| >>> import numpy
| >>> print numpy.__version__
|
| As far as I recall, the masked array module was always available as
| numpy.ma, but maybe I'm wrong. Could you try the following:
|
| >>> import numpy
| >>> print numpy.core.ma
|
Howdy Stefan and Pierre
This should answer both of your questions:
>>> import numpy
>>> print numpy.__version__
1.0.1
>>> print numpy.core.ma
<module 'numpy.core.ma' from
'/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/ma.pyc'>
>>>
I actually installed 1.2.0 using the installation package for OS X.
However, I have no idea where it was installed to and how to instruct
python to use the new one over the old.
--
John M Harrold
More information about the NumPy-Discussion
mailing list