python - Python SciPy 需要 BLAS 吗?

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.

我需要从本网站下载哪个 tar?

我已经尝试过fortrans,但我一直收到这个错误(显然设置了环境变量之后)。

最佳答案

如果您需要使用最新版本的 SciPy 而不是打包版本,而无需经历构建 BLAS 和 LAPACK 的麻烦,您可以按照以下步骤操作。

从存储库安装线性代数库(适用于 Ubuntu),

sudo apt-get install gfortran libopenblas-dev liblapack-dev

然后安装SciPy,(下载SciPy源码后):python setup.py install

pip install scipy

视情况而定。

https://stackoverflow.com/questions/7496547/

相关文章:

python - 更改 pandas DataFrame 中的特定列名

linux - 从文件列表中获取输入的 Tar 归档

python - 在 scikit-learn 中将分类器保存到磁盘

linux - 移动除一个以外的所有文件

linux - 您可以将 Amazon EBS 附加到多个实例吗?

python - 为什么元组可以包含可变项?

linux - 当程序具有命令行参数时,如何使用 GDB 分析程序的核心转储文件?

python - 如何检查有效的电子邮件地址?

python - Django CSRF 检查因 Ajax POST 请求而失败

python - 迭代模板中的模型实例字段名称和值