[Tutor] Confused about "import Numeric" vs "import numpy" for Arrays

Kent Johnson kent37 at tds.net
Fri Aug 8 18:25:11 CEST 2008


On Fri, Aug 8, 2008 at 11:56 AM, S Python <spython01 at gmail.com> wrote:
> Hi Everyone,
>
> I would like to create a two-dimensional array but am confused as to
> how to go about it.
>
> I've read about Numeric Python and Numpy.  Are they one and the same?

No, they are not the same. Numeric is older; NumArray is another older
package. You should use Numpy if you can.
http://numpy.scipy.org/#older_array


> I then downloaded and installed release 1.1.1 of the Numpy package
> from this site:
> http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103
>
> After restarting the shell, I still get the same errors above (though
> I do have this directory now: C:\Python25\Lib\site-packages\numpy).
>
> Anyone know how to correctly install and use this package?

Now you should be able to import numpy.

Kent


More information about the Tutor mailing list