[TriLUG] installing python modules

Joseph Mack NA3T jmack at wm7d.net
Fri Mar 16 10:11:13 EDT 2007


On Fri, 16 Mar 2007, Michael Rothwell wrote:

> What do you get when you run `which python`?

zzz at amber:~/src/scipy-0.5.2> which python
/usr/bin/python

zzz at amber:~/src/scipy-0.5.2> python -V
Python 2.4.4

the python installation is in /usr (lib, bin, include)

Thanks Joe


>
>
> On Mar 16, 2007, at 9:43 AM, Joseph Mack NA3T 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've asked to join the numpy ml, but have waited for 2 days and have still 
>> not got confirmation of joining).
>> 
>> Thanks Joe
>> 
>> -- 
>> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
>> jmack (at) wm7d (dot) net - azimuthal equidistant map
>> generator at http://www.wm7d.net/azproj.shtml
>> Homepage http://www.austintek.com/ It's GNU/Linux!
>> -- 
>> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
>> TriLUG Organizational FAQ  : http://trilug.org/faq/
>> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>
>

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!



More information about the TriLUG mailing list