[TriLUG] installing python modules

Robert Dale robdale at gmail.com
Fri Mar 16 11:06:04 EDT 2007


On 3/16/07, Joseph Mack NA3T <jmack at wm7d.net> wrote:
> I don't know anything about using python but an application
> I have needs the python modules numpy and scipy (scipy needs
> numpy). I've installed python2.4 in /usr (libs are in
> /usr/lib/python2.4/). When I do the numpy install according
> to the instructions,
>
> python2.4 setup.py install
>
> the numpy libs (modules?) go in /usr/local/lib/python2.4 and
> not /usr/lib/python2.4 (where all the other python packages
> are). The next step, the install of scipy fails because it
> can't find numpy in /usr/lib/python2.4.
>
> I've grep'ed files in the numpy source directory and in
> /usr/lib/python2.4 looking for the strings "usr" and "local"
> but can't find where the python equivalent of --prefix is
> set.
>
> Any ideas how to tell numpy to install in /usr and not
> /usr/local?

I don't, but in the meantime, you can tell python to search that directory
with PYTHONPATH.
Try export PYTHONPATH=/usr/local/lib/python2.4 then running your app.

-- 
Robert Dale



More information about the TriLUG mailing list