473,503 Members | 12,516 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Numpy not found



I downloaded and installed Phyton 2.52 (it works), numpy-1.0.4.win32-
py2.5, and scipy-0.6.0.win32-py2.5

I can´t get Numpy to show up at Python´s IDLE, or command line. If I
do:
>>>import Numeric
# I get
>>>Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import Numeric
ImportError: No module named Numeric

And if I do:
>>>import Numeric *
# I get
SyntaxError: invalid syntax

I restarted the machine and double clicked in the same file
numpy-1.0.4.win32-py2.5 again, it asked whether I wanted to reinstall
or repair, I chose repair. I tried the same commands again after this
but I got the same results.

Next, I went o the Python25 "site packages" subdirectory and there I
found "setup.py" and "readme.txt" files. I did run the setup with no
changes and the readme file suggested to run the setup.py scrip. No
changes.

Any help with this mater will be much appreciated,

Adolfo


Jun 27 '08 #1
1 2439
adolfo <ag************@gmail.comwrites:
I downloaded and installed Phyton 2.52 (it works), numpy-1.0.4.win32-
py2.5, and scipy-0.6.0.win32-py2.5

I can´t get Numpy to show up at Python´s IDLE, or command line. If I
do:
>>>>import Numeric
# I get
>>>>Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import Numeric
ImportError: No module named Numeric
Try 'import numpy' instead. Numeric is an earlier incarnation of numpy --
it has (mostly) the same interface, but is a different package. (Just to
confuse things even further, there's also another old one, called
numarray).
And if I do:
>>>>import Numeric *
# I get
SyntaxError: invalid syntax
The proper syntax for that is (assuming you want numpy instead) 'from numpy
import *'.

Glenn
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
2201
by: nikie | last post by:
I'm a little bit stuck with NumPy here, and neither the docs nor trial&error seems to lead me anywhere: I've got a set of data points (x/y-coordinates) and want to fit a straight line through...
1
4407
by: David Murmann | last post by:
Hi all! i just found some colored glass and experimented a bit with these red/green 3d images, so i thought i'd share this simple script i wrote to generate such images with anyone whos...
13
3883
by: Gary Wessle | last post by:
Hi I am trying to install NumPy in my debian/testing linux 2.6.15-1-686. with no numpy for debian/testing, I am left alone, since the experimental version available by debian will result in a...
3
3562
by: Iljya | last post by:
Hello, I need to pickle the type numpy.float32 but encounter an error when I try to do so. I am able to pickle the array itself, it is specifically the type that I cannot pickle. I am using:...
15
2498
by: greg.landrum | last post by:
After using numeric for almost ten years, I decided to attempt to switch a large codebase (python and C++) to using numpy. Here's are some comments about how that went. - The code to...
2
3952
by: Chris Smith | last post by:
Howdy, I'm a college student and for one of we are writing programs to numerically compute the parameters of antenna arrays. I decided to use Python to code up my programs. Up to now I haven't...
18
22372
by: robert | last post by:
Is there a ready made function in numpy/scipy to compute the correlation y=mx+o of an X and Y fast: m, m-err, o, o-err, r-coef,r-coef-err ? Or a formula to to compute the 3 error ranges? ...
5
4115
by: auditory | last post by:
I am a newbie here I am trying to read "space separated floating point data" from file I read about csv module by searching this group, but I couldn't read space separated values with csv....
5
6767
by: Marc Oldenhof | last post by:
Hello all, I'm pretty new to Python, but use it a lot lately. I'm getting a crazy error trying to do operations on a string list after importing numpy. Minimal example: Python 2.5.1...
2
2773
by: Travis Oliphant | last post by:
I wanted to point anybody interested to a blog post that describes a useful pattern for having a NumPy array that points to the memory created by a different memory manager than the standard one...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.