centos中virtualenv安装scipy

因为项目需要scipy,在virtualenv中安装scipy,参考官方安装说明http://www.scipy.org/scipylib/building/linux.html,需要numpy,pip install numpy很简单安装好了,但是pip install scipy时一直报错:

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.
大stackoverflow.com救了我。

yum install lapack lapack-devel blas blas-devel
 pip install numpy
 pip install scipy
不得不说这个包好大,compile了好长时间。

你可能感兴趣的:(centos中virtualenv安装scipy)