Fixing numpy.distutils.system_info.NotFoundError: No lapack/blas resources
Note: If you are on Windows, you can not install scipy using pip! Follow this guide instead: https://www.scipy.org/install.html. This blog post is only for Linux-based systems!
When building some of my libraries on Travis, I encountered this error during
install_numpy_scipy.sh
pip install numpy scipy --upgradenumpy_error.txt
numpy.distutils.system_info.NotFoundError: No lapack/blas resourcesSolution
Install lapack and blas:
install_lapack_blas.sh
sudo apt-get -y install liblapack-dev libblas-devIn most cases you will then get this error message:
dfftpack_error.txt
error: library dfftpack has Fortran sources but no Fortran compiler foundFix that by
install_gfortran.sh
sudo apt-get install -y gfortranIn Travis, you can do it like this in .travis.yml:
.travis.yml
before_install:
- sudo apt-get -y install liblapack-dev libblas-dev gfortranCheck out similar posts by category:
Build Systems, Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow