[SciPy-dev] Trouble with different python installations

Nils Wagner nwagner@iam.uni-stuttgart...
Thu Jan 10 01:31:05 CST 2008


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