pip3 install scipy Error

Symptom

The following error message is displayed during SciPy installation.

Figure 1 Error message

Possible Causes

The error message indicates that the LAPACK and BLAS libraries cannot be found in the /usr/lib64 directory. Actually, the libraries exist in the directory. It is the so.3 library that is unidentified.

Solution

Create soft links to the liblapack.so.3 and libblas.so.3 files.

Run the following command as the installation user of the software package:
cd /usr/lib64
ln -s libblas.so.3 libblas.so
ln -s liblapack.so.3 liblapack.so