[SciPy-dev] Trouble with different python installations

Stefan van der Walt stefan@sun.ac...
Thu Jan 10 13:08:32 CST 2008


Hi Nils,

Just use a different PYTHONPATH depending on which version you are
running (I assume you manually set such a path?).  If 2.3 extensions
are found in the PYTHONPATH whilst running 2.5, you're bound to have
problems.

Regards
Stéfan

On Thu, Jan 10, 2008 at 07:15:19PM +0100, Nils Wagner wrote:
> On Thu, 10 Jan 2008 08:31:05 +0100
>   "Nils Wagner" <nwagner@iam.uni-stuttgart.de> wrote:
> > Hi all,
> > 
> > I have two different python versions on my linux box-
> > python2.3 (global installation) and python2.5 (local 
> > installation without root privileges).
> > 
> > I have removed the build directory and tried to install 
> > numpy
> > for python2.5
> > ~/local/bin/python setup.py install --prefix=$HOME/local
> > 
> > If I try to import numpy I get
> > 
> > ~/local/bin/python
> > Python 2.5.1 (r251:54863, Dec 21 2007, 09:21:07)
> > [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
> > Type "help", "copyright", "credits" or "license" for 
> >more 
> > information.
> >>>> import numpy
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >   File 
> > "/data/home/nwagner/local/lib64/python2.3/site-packages/numpy/__init__.py", 
> > line 44, in <module>
> >     import core
> >   File 
> > "/data/home/nwagner/local/lib64/python2.3/site-packages/numpy/core/__init__.py", 
> > line 5, in <module>
> >     import multiarray
> > ImportError: 
> > /data/home/nwagner/local/lib64/python2.3/site-packages/numpy/core/multiarray.so: 
> > undefined symbol: Py_InitModule4
> >>>>
> > 
> > How can I resolve the conflict between 2.3 and 2.5 ?
> > 
> > Nils


More information about the Scipy-dev mailing list