[Numpy-discussion] Import NumPy in Self-defined function script
Tim
timlee126@yahoo....
Mon Feb 23 08:35:11 CST 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@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__
Cheers
Stéfan
_______________________________________________
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/20090223/24ff7c30/attachment.html
More information about the Numpy-discussion
mailing list