Hello,<br><br>In the past I installed different versions of python (using gcc) e.g. 2.5.4, 2.6.4 <br>at the following places:<br><br>/wim/pkg/python/2.5.4<br>/wim/pkg/python/2.6.4<br><br>I installed the numpy, scipy, matplotlib, dadi modules<br>
using the command:<br>/wim/pkg/python/2.5.4/bin/python setup.py install --prefix=/wim/pkg/python/2.5.4<br>As a result the working modules got installed under:<br>/wim/pkg/python/.5.4/lib/python2.5/site-packages/dadi<br>/wim/pkg/python/.5.4/lib/python2.5/site-packages/numpy<br>
/wim/pkg/python/.5.4/lib/python2.5/site-packages/scipy<br>/wim/pkg/python/.5.4/lib/python2.5/site-packages/matplotlib<br><br>Question 1: Is it correct when I state that the above scipy, numpy, <br>modules can only be used by the python2.5.4 executable or <br>
can I also use in python2.6.4 if I modify the PYTHONHOME and PYTHONPATH variables?<br>Does one have to recompile all its external libraries for use with an updated python version?<br>(assuming that the glibc is identical)<br>
<br><br>I also tried to install the external libraries (e.g. numpy) in different directories than the main <br>python directories by specifying e.g. --prefix=/wim/pkg/pylib/   (in the case of using python2.6.5)<b><br></b>I noticed that the suffix was still of the form "lib/pythonx.y/site-packages/numpy"<br>
Therefore, I wonder:<br><br>a. How can one (elegantly) force numpy to be installed under (using python 2.6.2 and python2.6.5):<br>/wim/pkg/pylib/lib/python2.6.4/.<br>/wim/pkg/pylib/lib/python2.6.5<br>b. How can one (elegantly) install different versions of the same package using the same python binary (2.6.4) as e.g:<br>
 /wim/pkg/pylib/lib/python2.6/site-packages/numpy0.70<br>/wim/pkg/pylib/lib/python2.6/site-packages/numpy0.71<br><br>or is this the wrong approach?<br><br><br><br>Thanks,<br><br>Wim<br><br>