Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 323
George Liu Avatar asked Apr 27 '16 14:04

George Liu


2 Answers

You have to install OpenBlas system library. Try:

sudo apt-get install libopenblas-dev
like image 119
Francesco Nazzaro Avatar answered Oct 20 '22 11:10

Francesco Nazzaro


Firstly, try locate libopenblas.so.0 to find out the path.

Then, do echo $LD_LIBRARY_PATH to check if it has been included.

like image 41
qun Avatar answered Oct 20 '22 10:10

qun