[Numpy-discussion] problem on testing numpy

Matthieu Brucher matthieu.brucher@gmail....
Sat Aug 25 11:31:45 CDT 2007


Where did you launch Python from ?

Matthieu

2007/8/24, Vivian Tini <v.tini@tu-bs.de>:
>
> Dear All,
>
> I have just installed NumPy and I am excited to test it.
> Since I have no access as root then I installed Numpy in my home
> directory.
> The following messages appears as I tried some commands:
>
> >>> import numpy
> Running from numpy source directory
>
> >>> from numpy import *
> >>> a = array([1,2,3])
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> NameError: name 'array' is not defined
>
> >>> import Numeric
> >>> from Numeric import *
> >>> a = array([1,2,3]) # this works fine
> >>> b = array([4,5,6])
> >>> c = inner(a,b)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> NameError: name 'inner' is not defined
>
> How should I proceed to make either the numpy or Numeric works? Is it the
> problem from the installation?
>
> Thanks a lot in advance.
>
> Regards,
>
> Vivian Tini
>
>
>
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20070825/879cd2d4/attachment.html 


More information about the Numpy-discussion mailing list