Re: [Numpy-discussion] numpy installed but can' use

2007-12-29 Thread Alan G Isaac
On Sat, 29 Dec 2007, dikshie apparently wrote: > so import numpy and from numpy import * > are different ? http://docs.python.org/tut/node8.html hth, Alan Isaac ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/

Re: [Numpy-discussion] numpy installed but can' use

2007-12-28 Thread dikshie
On Dec 29, 2007 1:38 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > Yes, the key is what "names" are "imported" into the current namespace > (what names are visible to your code). > > import numpy > > loads the module and places the name "numpy" in the current namespace > which points to the

Re: [Numpy-discussion] numpy installed but can' use

2007-12-28 Thread Travis E. Oliphant
dikshie wrote: > On Dec 29, 2007 1:57 AM, Christopher Barker <[EMAIL PROTECTED]> wrote: > the names in the > >> numpy module into this namespace. There is no name: "numpy" in the numpy >> module -- it's the name of the module itself. Try: >> >> import numpy >> numpy.__version__ >> > > > so

Re: [Numpy-discussion] numpy installed but can' use

2007-12-28 Thread dikshie
On Dec 29, 2007 1:57 AM, Christopher Barker <[EMAIL PROTECTED]> wrote: the names in the > numpy module into this namespace. There is no name: "numpy" in the numpy > module -- it's the name of the module itself. Try: > > import numpy > numpy.__version__ so import numpy and from numpy import * are

Re: [Numpy-discussion] numpy installed but can' use

2007-12-28 Thread Eric Firing
dikshie wrote: > Hi, > successfully installed numpy but i cant use it (numpy is not defined). > for example: > > > Python 2.5.1 (r251:54863, Nov 25 2007, 02:18:29) > [GCC 4.2.1 20070719 [FreeBSD]] on freebsd7 > Type "help", "copyright", "credits" or "license" for more information. from nump

Re: [Numpy-discussion] numpy installed but can' use

2007-12-28 Thread Christopher Barker
dikshie wrote: from numpy import * numpy.__version__ > Traceback (most recent call last): > File "", line 1, in > NameError: name 'numpy' is not defined > > any hints ? yes, you did an "import *", which means "bring all the names in the numpy module into this namespace. There is no

[Numpy-discussion] numpy installed but can' use

2007-12-28 Thread dikshie
Hi, successfully installed numpy but i cant use it (numpy is not defined). for example: Python 2.5.1 (r251:54863, Nov 25 2007, 02:18:29) [GCC 4.2.1 20070719 [FreeBSD]] on freebsd7 Type "help", "copyright", "credits" or "license" for more information. >>> from numpy import * >>> numpy.__version__