[SciPy-dev] Trouble with different python installations

Nils Wagner nwagner at iam.uni-stuttgart.de
Thu Jan 10 13:15:19 EST 2008


On Thu, 10 Jan 2008 08:31:05 +0100
  "Nils Wagner" <nwagner at 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
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.org
> http://projects.scipy.org/mailman/listinfo/scoipy-dev

I found some information at
http://mail.python.org/pipermail/python-list/2007-March/432606.html

but I still do not know how to resolve the problem.

Since scipy requires python versions > 2.3 I would
be happy if someone can help me with different python
installations on one machine.

Thanks in advance.

                    Nils
  



More information about the SciPy-Dev mailing list