centos中virtualenv安裝scipy

由於項目須要scipy,在virtualenv中安裝scipy,參考官方安裝說明http://www.scipy.org/scipylib/building/linux.html,須要numpy,pip install numpy很簡單安裝好了,可是pip install scipy時一直報錯: html

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了好長時間。
相關文章
相關標籤/搜索