Python modules

Robert Kern robert.kern at gmail.com
Mon May 15 21:59:38 EDT 2006


Shirley Li wrote:
> Dear Python experts,
> 
> I'm a beginner of Python programming.    I have a question about Python
> modules.
> 
> With the following:
> =================
> import sys, os, string, math
> from Numeric import *
> from Matrix import *
> =================
> at the beginning of my Python script, it complained that "ImportError:
> No module named Numeric" when I run the script.
> 
> Could someone tell me what's wrong?

You didn't install the Numeric module or didn't install it correctly.

Also, please note that the Numeric module (and the Matrix module that comes with
it) have been replaced with the numpy package. Since you are just getting
started, please start with numpy.

  http://numeric.scipy.org

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco




More information about the Python-list mailing list