[Numpy-discussion] Import NumPy in Self-defined function script

Tim timlee126@yahoo....
Mon Feb 23 08:35:11 CST 2009

My Python is Python 2.5.2 (r252:60911, Oct  5 2008, 19:24:49)
Here is the output:
>>> print numpy
<module 'numpy' from '/usr/lib/python2.5/site-packages/numpy/__init__.pyc'>
>>> print numpy.__version__
Are these compatible with each other?
I just found the error goes away, after I restart my ubuntu 8.10.

--- On Sun, 2/22/09, Stéfan van der Walt <stefan@sun.ac.za> wrote:
From: Stéfan van der Walt <stefan@sun.ac.za>
Subject: Re: [Numpy-discussion] Import NumPy in Self-defined function script
To: "Discussion of Numerical Python" <numpy-discussion@scipy.org>
Date: Sunday, February 22, 2009, 6:45 PM

Hi Tim

2009/2/23 Tim <timlee126@yahoo.com>:
> I think zeros belongs to Module numpy, and I import it in my function file
> "trainer.py". So I was wonering what's the mistake I am
making?  Thanks for
> help!

What is the output of the following (please execute this inside Python
inside trainer.py's directory):

import numpy
print numpy
print numpy.__version__

Numpy-discussion mailing list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20090223/24ff7c30/attachment.html 

More information about the Numpy-discussion mailing list