Scipy installation issue, getting ImportError: libopenblas.so.0: cannot open shared object file or directory
16,541
Solution 1
You have to install OpenBlas
system library. Try:
sudo apt-get install libopenblas-dev
Solution 2
Firstly, try locate libopenblas.so.0
to find out the path.
Then, do echo $LD_LIBRARY_PATH
to check if it has been included.
Author by
Admin
Updated on June 06, 2022Comments
-
Admin almost 2 years
I am installing
Scipy-0.16.1
onUbuntu 14.04
OpenBLAS_0.2.18
andNumpy-1.11.0
have been installed with no issues.Scipy-0.16.1.tar.gz
has been downloadedsite.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
-
Francesco Nazzaro about 8 yearstry
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
before run setup.py -
Francesco Nazzaro about 8 yearsor you can try to install scipy with
pip install scipy==0.16.1
-
Admin about 8 yearsI tried export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH and run sudo python setup.py config , it still shows same error
-
Francesco Nazzaro about 8 yearstry to install with pip
-
Admin about 8 yearsI tried pip install scipy and get Requirement already satisfied (use --upgrad to upgrade): script in /usr/lib/python2.7/dist-packages
-
Francesco Nazzaro about 8 yearsit seems that you already have scipy installed. try to open a python shell and try
import scipy
-
Jacques MALAPRADE almost 2 yearsIn centos use:
dnf install openblas-devel