I'm trying to install numpy==1.10.2
, scipy
and matplotlib
on server based on opensuse
.
I've installed numpy
in virtualenv
from source (I've tried by pip also - same result of course). Now when I'm trying to import numpy
in python console I'm receiving following error:
ImportError: /home/user/.virtualenvs/project/lib/python2.7/site-packages/numpy/core/multiarray.so: undefined symbol: cblas_sgemm
Note: I'm not superuser on this server.
Edit:
ldd /home/user/.virtualenvs/project/lib/python2.7/site-packages/numpy/core/multiarray.so`
linux-vdso.so.1 (0x00007fffa0d69000)
libtatlas.so.3 => /home/user/.local/usr/lib64/atlas/libtatlas.so.3 (0x00007fe366d66000)
libm.so.6 => /lib64/libm.so.6 (0x00007fe366a50000)
libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0 (0x00007fe3666b2000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe366496000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe3660f0000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe367a15000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe365eec000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fe365ce9000)
libtatlas.so.3 => /home/user/.local/usr/lib64/atlas/libtatlas.so.3
- I linked this because of other problem with libatlas:
ImportError: /usr/lib64/atlas/libtatlas.so.3: undefined symbol: clapack_ilaenv
SOLLUTION
The problem was with ATLAS lib. According to @ali_m advice I installed numpy
from source with OpenBLAS
instead of ATLAS. Here link to instruction how to install numpy with BLAS.