Scipy installation issue, getting ImportError: libopenblas.so.0: cannot open shared object file or directory

George Liu picture George Liu · Apr 27, 2016 · Viewed 14k times · Source

I am installing Scipy-0.16.1 on Ubuntu 14.04

OpenBLAS_0.2.18 and Numpy-1.11.0 have been installed with no issues.

Scipy-0.16.1.tar.gz has been downloaded

site.cfg was copied and un-commented the following lines:

[openblas]

libraries = openblas

library_dirs = /opt/OpenBLAS/lib

include_dirs = /opt/OpenBLAS/include

Added a line to ~/.bashrc

export LD_LIBRARY_PATH=/opt/OpenBLAS/lib:$LD_LIBRARY_PATH

source ~/.bashrc

ldconfig

sudo python setup.py config

ERROR

ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

Answer

Francesco Nazzaro picture Francesco Nazzaro · Apr 27, 2016

You have to install OpenBlas system library. Try:

sudo apt-get install libopenblas-dev