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

Tim timlee126 at yahoo.com
Mon Feb 23 09:35:11 EST 2009


Hi,
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__
1.1.1
Are these compatible with each other?
I just found the error goes away, after I restart my ubuntu 8.10.
Thanks,
-Tim



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

Hi Tim

2009/2/23 Tim <timlee126 at 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__

Cheers
Stéfan
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090223/24ff7c30/attachment.html>


More information about the NumPy-Discussion mailing list