Need help with C, C++, perl, python, etc?
by F37U5G0D » 2009-04-28 22:48
When I run my code zeros ([7,7], int) I get the error that the zeros() is undefined even though I have the numpy package installed. What gives?
-
F37U5G0D
-
- Posts: 102
- Joined: 2008-07-27 01:30
- Location: Monmouth, Il
by BioTube » 2009-04-28 22:56
Did you remember to import the proper package/library/whatever?

Ludwig von Mises wrote:The elite should be supreme by virtue of persuasion, not by the assistance of firing squads.
-

BioTube
-
- Posts: 7551
- Joined: 2007-06-01 04:34
by F37U5G0D » 2009-04-28 23:53
Yeah my code starts with
- Code: Select all
import string, sys, random, array, Numeric, numpy
I don't get any errors on that line yet zeros(anything) throws an error everytime.
-
F37U5G0D
-
- Posts: 102
- Joined: 2008-07-27 01:30
- Location: Monmouth, Il
Return to Programming
Who is online
Users browsing this forum: No registered users and 3 guests