numpy.distutils.system_info.BlasNotFoundError:
来源:互联网 发布:汽车保养 知乎 编辑:程序博客网 时间:2024/05/19 17:02
numpy.distutils.system_info.BlasNotFoundError:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
http://www.scipy.org/install.html
Linux packages
Users on Linux can quickly install thenecessary packages from repositories.
http://www.netlib.org/blas/
1. 安装numpy
numpy是另外一个科学计算库,scipy依赖于该科学计算库,故而需要安装。下载最新的numpy(1.6.2),解压之。进入其文件夹,修改site.cfg.example,另存为site.cfg,修改方法如下:
[plain] view plaincopy
1. 首先,将下列代码的注释符号去掉,或者直接添加,不要漏了DEFAULT
2. [DEFAULT]
3. library_dirs = /usr/local/lib
4. include_dirs = /usr/local/include
5.
6. 对于多核系统,需要去掉如下代码的注释
7. [blas_opt]
8. libraries = ptf77blas, ptcblas, atlas
9.
10. [lapack_opt]
11. libraries = lapack, ptf77blas, ptcblas, atlas
12.
13. [amd]
14. amd_libs = amd
15.
16. [umfpack]
17. umfpack_libs = umfpack
18. 对于单核系统(我的就是),需要去掉如下代码的注释
19. [blas_opt]
20. libraries = f77blas, cblas, atlas
21. [lapack_opt]
22. libraries = lapack, f77blas, cblas, atlas
完成上述步骤后,采用正常的安装方式即可:
[plain] view plaincopy
1. python3.2 setup.py build
2. sudo python3.2 setup.py install --prefix=/usr/local
有一点需要注意,就是要注意你使用的Python版本,这个对于成功与否影响很大。
2. 安装scipy
经过繁琐的步骤,终于等来了最后的时刻,呵呵~。 下载最新的scipy(0.11.0),解压成文件夹,进入到该文件夹中,执行:
[plain] view plaincopy
1. python3.2 setup.py build
2. sudo python3.2 setup.py install --prefix=/usr/local
依然无法使用
解决:
http://stackoverflow.com/questions/7496547/python-scipy-needs-blas
yum install lapack lapack-devel blas blas-develpip install numpypip install scipy
- numpy.distutils.system_info.BlasNotFoundError:
- numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
- numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
- windows install scipy 错误:numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
- win下安装scipy出错:numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
- 安装scipy库报错raise NotFoundError('no lapack/blas resources found') numpy.distutils.system_info.NotFound
- pip install scipy报错:numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
- SYSTEM_INFO
- SYSTEM_INFO
- python no module named numpy.distutils.core
- 使用PythonCharm简易安装python统计包及UnicodeDecodeError,numpy.distutils.systeminfo.blas/lapacknotfounderror
- Distutils介绍
- Python的Distutils模块
- Python之Distutils打包
- 使用distutils发布模块
- Python: pydoc 和 distutils 模块
- 用distutils打包python app
- Python深入:Distutils安装包
- linux下vi命令大全
- Python中SQLite数据库使用初步
- 关于MySQL的全局变量与会话变量的一些思考
- 经典算法排序——希尔排序
- bat curl 发送http请求 监控网站
- numpy.distutils.system_info.BlasNotFoundError:
- hdu 2063 过山车 (二分匹配)
- SQLSERVER存储过程基本语法
- 最大连续子序列
- 搜集的linux命令
- Windows 下单机最大TCP连接数(转)
- Android LayoutInflater的使用
- Request.QueryString的中文乱码问题
- Linux SSH日常命令收集