priya
priya

Reputation: 26749

ImportError: No module named numeric

I get the following error ImportError: No module named numeric if I have the following import

 from numeric import *

in my python source code. How do I get this running on my Windows box against a python 2.7.x compiler?

Upvotes: 1

Views: 21685

Answers (3)

JoshuaBoshi
JoshuaBoshi

Reputation: 1286

You will probably need to install this module: Link There are binaries for windows too, so installation should be easy.

Josh

Upvotes: 2

Thomas K
Thomas K

Reputation: 40390

There is a module called numeric, but it's been deprecated for years in favour of numpy. You probably want to update your code to use numpy instead.

If you really need numeric, you can get it here, but you'll have to compile it from source for Python 2.7, because the latest binaries are for 2.4.

Upvotes: 7

Michael J. Barber
Michael J. Barber

Reputation: 25052

There is no common module called numeric. Are you sure you don't mean import numpy?

Upvotes: 2

Related Questions