Linux and Numeric extensions...

Ignacio Vazquez-Abrams ignacio at openservices.net
Sun Sep 23 16:53:36 EDT 2001


On Sun, 23 Sep 2001, Carl Johan Rehn wrote:

> Ignacio Vazquez-Abrams wrote:
>
> > On Sun, 23 Sep 2001, Carl Johan Rehn wrote:
> >
> >> Ignacio Vazquez-Abrams wrote:
> >>
> >> > On Sun, 23 Sep 2001, Carl Johan Rehn wrote:
> >> >
> >> >> I am running Linux Suse 7.2 and have recently installed the Numeric
> >> >> extensions to Python, but when I import the Numeric library the Python
> >> >> interpreter cannot find the library. I suppose I have to add
> >> >> the path to the site-packages/Numeric library somewhere, but I don't
> >> >> know where.
> >> >>
> >> >> Can anybody help me?
> >> >
> >> > Once you use distutils to compile and install the Numeric extensions,
> >> > you should just be able to import the modules in the package, e.g.,
> >> > Numeric.Numeric. What's happening in your case?
> >> >
> >>
> >> I think I've used the rpm distribution of Numeric and when I do "import
> >> Numeric" I just get "ImportError: No module named Numeric".
> >
> > The NumPy 20.1 RPM ( the latest version, 20.2, doesn't yet have RPMs) is
> > built for Python 2.1(.1). What version of Python are you using?
> >
>
> Oh, I see that I'm running Python 2.0! Would this mean that I have to build
> NumPy from the source files?

Actually, the Python 2.0 RPM that comes with SuSE 7.2 is missing one or more
modules (specifically bsddb, but there may be others), so you should probably
upgrade to 2.1.1, and tossing in 2.2a3 for compatibility testing might be
helpful.

And while you're in upgrade mode, it probably can't hurt to grab the
tarball for NumPy 20.2 and use that instead of 20.1.

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list