我正在尝试在我正在分发的包中创建所需的库。它同时需要SciPy和NumPy库。在开发过程中,我使用
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.
我怎么才能让它工作?
发布于 2015-08-06 02:51:21
这对我在Ubuntu 14.04上很有效:
sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
pip install scipy
发布于 2015-02-12 00:32:31
如果您使用的是Ubuntu,则需要libblas和liblapack dev包。
aptitude install libblas-dev liblapack-dev
pip install scipy
发布于 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
https://stackoverflow.com/questions/11114225
复制相似问题