相关疑难解决方法(0)

使用pip安装SciPy和NumPy

我正在尝试在我正在分发的包中创建所需的库.它需要SciPyNumPy库.在开发过程中,我安装了两个

apt-get install scipy
Run Code Online (Sandbox Code Playgroud)

安装了SciPy 0.9.0和NumPy 1.5.1,它运行良好.

我想使用相同的方法pip install- 以便能够在我自己的包的setup.py中指定依赖项.

问题是,当我尝试:

pip install 'numpy==1.5.1'
Run Code Online (Sandbox Code Playgroud)

它工作正常.

但是之后

pip install 'scipy==0.9.0'
Run Code Online (Sandbox Code Playgroud)

惨遭失败

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.
Run Code Online (Sandbox Code Playgroud)

我如何让它工作?

python apt numpy pip scipy

152
推荐指数
5
解决办法
23万
查看次数

标签 统计

apt ×1

numpy ×1

pip ×1

python ×1

scipy ×1