修复 numpy.distutils.system_info.NotFoundError: No lapack/blas resources
注意: 如果你在 Windows 上,你无法使用 pip 安装 scipy!请按照此指南操作:https://www.scipy.org/install.html。此博客文章仅适用于基于 Linux 的系统!
在 Travis 上构建我的一些库时,我遇到了此错误
install_numpy_scipy.sh
pip install numpy scipy --upgradenumpy_error.txt
numpy.distutils.system_info.NotFoundError: No lapack/blas resources解决方案
安装 lapack 和 blas:
install_lapack_blas.sh
sudo apt-get -y install liblapack-dev libblas-dev在大多数情况下,你将收到此错误消息:
dfftpack_error.txt
error: library dfftpack has Fortran sources but no Fortran compiler found通过以下命令修复
install_gfortran.sh
sudo apt-get install -y gfortran在 Travis 中,你可以在 .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