Linux scipy安装

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiangcheng001/article/details/53994870
某些情况下,Linux会缺少scipy的一些基础包,如lapack/blas等。网上搜到的一下教程颇为麻烦,在折腾一番之后,找到简易命令行。


只需要几个命令即可完成:


sudo apt-get install libblas-dev
sudo apt-get install liblapack-dev
sudo apt-get install gfortran
sudo apt-get install python-scipy
轻松搞定。




On Fedora, this works:
 yum install lapack lapack-devel blas blas-devel
 pip install numpy
 pip install scipy


Remember to install 'lapack-devel' and 'blas-devel' in addition to 'blas' and 'lapack' otherwise you'll get the error you mentioned or the the "numpy.distutils.system_info.LapackNotFoundError" error.


不知为何非要6.1.1的,redhat上。

sudo easy_install pip==6.1.1

猜你喜欢

转载自blog.csdn.net/xiangcheng001/article/details/53994870