[Numpy-discussion] ImportError: No module named ma
Tue Oct 7 14:47:46 CDT 2008
John Harrold wrote:
> This should answer both of your questions:
>>>> import numpy
>>>> print numpy.__version__
>>>> print numpy.core.ma
> <module 'numpy.core.ma' from
> 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.
the installation package for OS-X is for the python.org build -- from
the above, I can see you are running Apple's python, which came with a
version of numpy.
I don't remember how you installed matplotlib, but in general, most
extrenal packages are built for the python or python, so what I wold do is:
download and install python 2.5.2 from python.org (2.6 is brand new, and
not yet well supported by external packages)
re-install numpy 1.2.0 (may not be necessary, but it won't hurt)
you can tell what python you are running by typing "python" n the
command line -- it should be 2.5.2 if it's the python.org one. If that's
not what you get, you may need to edit your .bash_profile file to add it
to your PATH.
Christopher Barker, Ph.D.
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
More information about the Numpy-discussion