numpy question: how to get started
Jochen Küpper
kuepper.jochen at googlemail.com
Mon May 11 04:12:50 PDT 2009
On 11.05.2009, at 11:32, Maximilian Nickel wrote:
> 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".
But most likely you want to say
>>> import numpy
and, if necessary, change your code
> 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
Schöne Grüße,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de
Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D
Sex, drugs and rock-n-roll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090511/5eb66bc4/attachment.bin>
More information about the macports-users
mailing list