[Numpy-discussion] numpy import on x86_64 arch

David Cournapeau david@ar.media.kyoto-u.ac...
Fri Apr 10 06:02:13 CDT 2009

Vincent Thierion wrote:
> Hello,
> I import numpy module (numpy-1.0.4) on a x86_64 machine (on which I
> don't have any root privileges) after having install it thanks to
> python "setup.py install --prefix=../numpy". In this manner, I obtain
> a 64 bits compatible numpy library.
> (the "numpy" folder used for install is created just before install
> process)

You should really use a newer version if you install from sources. numpy
1.0.4 is one year and a half old. If you have to use pytyhon 2.3, you
should use numpy 1.1.*. If you have python 2.4 or later, you should use
numpy 1.3.0.

> I had the following error :
> /    import numpy
>   File "../numpy/lib64/python2.3/site-packages/numpy/__init__.py",
> line 43, in ?
>   File
> "../numpy/lib64/python2.3/site-packages/numpy/linalg/__init__.py",
> line 4, in ?
>   File
> "../numpy/lib64/python2.3/site-packages/numpy/linalg/linalg.py", line
> 25, in ?
> ImportError: liblapack.so.3: cannot open shared object file: No such
> file or directory
> /

What does ldd
../numpy/lib64/python2.3/site-packages/numpy/linalg/lapack_lite.so say ?

> So is there a solution to use numpy 64 bits version with a
> /usr/*lib*/liblapack.so.3 or is it absolutly necessary to install
> lapack 64 bits version ?

It is certainly mandatory to have a 64 bits version of lapack when
building numpy for a 64 bits python, but it does not have to be in
/usr/lib64. You can also build numpy without lapack:

LAPACK=None python setup.py ....



More information about the Numpy-discussion mailing list