numpy question: how to get started
Maximilian Nickel
max at inmachina.com
Mon May 11 02:32:27 PDT 2009
Hi,
you have numpy installed but are trying to use Numeric. Numpy and Numeric
are not equivalent. Numpy is the successor of Numeric and has different
codebase (although there is a compatibility-module). Afaik Numeric isnt
actively developed anymore. (See also http://numpy.scipy.org and
http://people.csail.mit.edu/jrennie/python/numeric/)
If you want to use Numeric you have to "sudo port install py26-numeric".
/max
On Mon, May 11, 2009 at 11:02 AM, Victor Eijkhout
<eijkhout at tacc.utexas.edu>wrote:
> I thought I had numpy installed and that this is how it was used:
>
> [albook:~] %% which python
> /opt/local/bin/python
> [albook:~] %% python_select -s
> python26
> [albook:~] %% port installed | grep 26
> py26-altgraph @0.6.7_0 (active)
> py26-bdist_mpkg @0.4.3_0 (active)
> py26-configobj @4.5.2_0 (active)
> py26-dateutil @1.4.1_0 (active)
> py26-macholib @1.2_0 (active)
> py26-matplotlib @0.98.5.2_0+darwin_9+tkinter (active)
> py26-modulegraph-devel @0.7.2_0 (active)
> py26-mysql @1.2.2_0+mysql5 (active)
> py26-nose @0.10.4_0 (active)
> py26-numpy @1.3.0_0 (active)
> py26-py2app-devel @0.4.2_1 (active)
> py26-pyobjc2 @2.0_1 (active)
> py26-pyobjc2-cocoa @2.0_1 (active)
> py26-setuptools @0.6c9_0 (active)
> py26-tz @2009f_0 (active)
> python26 @2.6.2_1 (active)
> [albook:~] %% python
> Python 2.6.2 (r262:71600, Apr 29 2009, 10:46:45)
> [GCC 4.0.1 (Apple Inc. build 5490)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import Numeric
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named Numeric
> >>> import multarray
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named multarray
>
> ??
>
> Victor.
> --
> Victor Eijkhout, 512 471 5809 (w), 512 499 0504 (h)
> Texas Advanced Computing Center, The University of Texas at Austin
>
>
>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090511/14b5dbb1/attachment.html>
More information about the macports-users
mailing list