numpy.disutils.system_info.NotFoundError:找不到lapack/blas资源 [英] numpy.disutils.system_info.NotFoundError: no lapack/blas resources found
问题描述
问题:将numpy链接到正确的线性代数库.过程是如此复杂,以至于我可能第六次正在寻找解决方案,而且我不知道出了什么问题.我在Ubuntu 12.04.5上. 我重新安装了blas和lapack,然后使用pip重新安装了numpy.我在系统环境中进行了此操作,然后在virtualenv环境中进行了尝试.这些事情似乎都没有起作用.
Problem: Linking numpy to correct Linear Algebra libraries. Process is so complicated that I might be looking for the solution 6th time and I have no idea whats going wrong. I am on Ubuntu 12.04.5. I reinstalled blas and lapack and then reinstalled numpy using pip. I did that in system environment and then also tried in virtualenv environment. None of the things seem to be working.
这是我的numpy.__config__.show()
:
lapack_info:
NOT AVAILABLE
lapack_opt_info:
NOT AVAILABLE
openblas_lapack_info:
NOT AVAILABLE
blas_info:
NOT AVAILABLE
atlas_3_10_blas_threads_info:
NOT AVAILABLE
atlas_threads_info:
NOT AVAILABLE
blas_src_info:
NOT AVAILABLE
atlas_3_10_threads_info:
NOT AVAILABLE
atlas_blas_info:
NOT AVAILABLE
atlas_3_10_blas_info:
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
atlas_blas_threads_info:
NOT AVAILABLE
openblas_info:
NOT AVAILABLE
blas_mkl_info:
NOT AVAILABLE
blas_opt_info:
NOT AVAILABLE
atlas_info:
NOT AVAILABLE
atlas_3_10_info:
NOT AVAILABLE
lapack_mkl_info:
NOT AVAILABLE
mkl_info:
NOT AVAILABLE
这是一个非常常见的错误,有很多解决方案,具体取决于用户的环境和历史记录.我最近按照此处的指示完成了安装BLAS和LAPACK的整个过程: https://stackoverflow.com/a/9173550/3413239 . 我能够成功安装两者.
This is a very common error and has lots of solution depending on the user's environment and history. I recently went through the whole process of installing BLAS and LAPACK as instructed here: https://stackoverflow.com/a/9173550/3413239. I was able to successfully install both.
但是,我最初有以下库:(ls /usr/lib | grep blas
)
However, I initially had these libraries: (ls /usr/lib | grep blas
)
libopenblas.so.0
openblas-base/
libblas.so.3gf
libblas.3
我应该如何将numpy链接到线性代数库.是否具有所有linaear代数库是强制性的?即lapack,blas,atlas?
How should I link my numpy to linear algebra libraries. Is it mandatory to have all the linaear algebra libraries? i.e. lapack, blas, atlas?
我假设将numpy链接后,所有其他模块(如scipy和Orange)都将起作用.
I am assuming once the numpy is linked all other modules like scipy and Orange will work.
推荐答案
可能有未满足的依赖关系.发生此错误时,我可以通过安装两个软件包来解决此问题:
It's possible that you have unmet dependencies. When I had this error, I was able to fix it by installing two packages:
sudo apt-get install libblas-dev liblapack-dev
这篇关于numpy.disutils.system_info.NotFoundError:找不到lapack/blas资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!