首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >使用pip安装SciPy和NumPy

使用pip安装SciPy和NumPy
EN

Stack Overflow用户
提问于 2012-06-20 14:48:00
回答 6查看 233.3K关注 0票数 160

我正在尝试在我正在分发的包中创建所需的库。它同时需要SciPyNumPy库。在开发过程中,我使用

apt-get install scipy

它安装了SciPy 0.9.0和NumPy 1.5.1,并且运行良好。

我想使用pip install来做同样的事情,以便能够在我自己的包的setup.py中指定依赖项。

问题是,当我尝试时:

pip install 'numpy==1.5.1'

它工作得很好。

但是后来

pip install 'scipy==0.9.0'

失败得很惨烈,

raise self.notfounderror(self.notfounderror.__doc__)

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.

我怎么才能让它工作?

EN

回答 6

Stack Overflow用户

发布于 2015-08-06 02:51:21

这对我在Ubuntu 14.04上很有效:

sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
pip install scipy
票数 333
EN

Stack Overflow用户

发布于 2015-02-12 00:32:31

如果您使用的是Ubuntu,则需要libblas和liblapack dev包。

aptitude install libblas-dev liblapack-dev
pip install scipy
票数 77
EN

Stack Overflow用户

发布于 2016-05-18 12:19:03

由于先前使用yum进行安装的说明被破坏,因此这里是关于在类似fedora的设备上安装的更新说明。我已经在"Amazon Linux AMI 2016.03“上进行了测试。

sudo yum install atlas-devel lapack-devel blas-devel libgfortran
pip install scipy
票数 14
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11114225

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档