[Numpy-discussion] problem on testing numpy

Vivian Tini v.tini at tu-bs.de
Fri Aug 24 11:46:55 EDT 2007


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
     






More information about the NumPy-Discussion mailing list