您的位置:首页 > 其它

安装scipy

2015-11-28 11:29 232 查看
直接使用pip更新目前遇到了错误:

numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

这是因为安装scipy需要安装Blas和lapack, 它们是线性代数必备的库。

Blas and lapack are linear algebra packages which will need to be installed before scipy will work

可以用这种方法:

sudo apt-get install gfortran libopenblas-dev liblapack-dev

从源码编译的话,参考:

http://faculty.washington.edu/rjl/uwamath583s11/sphinx/_build/html/lapack_install.html

随后安装scipy,就可以用pip直接安装了,这里我是更新:

sudo pip install -U scipy

参考文献

http://stackoverflow.com/questions/7496547/does-python-scipy-need-blas
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: