【发布时间】:2023-02-15 18:21:48
【问题描述】:
我正在尝试使用 pip 作为我的包管理器,使用 BLAS 的 MKL 实现安装 scipy 1.9.1。对于 numpy,我可以这样做:pip install numpy --no-binary numpy。使用 Scipy (pip install scipy--no-binary scipy) 执行此操作失败并出现错误:
发现运行时依赖性 openblas:否(已尝试 pkgconfig 和 cmake)
../../scipy/meson.build:130:0: 错误:未找到依赖项“OpenBLAS”,尝试了 pkgconfig 和 cmake
我不知道如何配置 scipy/meson 以使用特定版本的 BLAS,它总是寻找 OpenBLAS。旧版本的 scipy 可以使用环境变量或 site.cfg 设置以多种方式完成此操作,但新的介子构建系统specifically no long supports this。
关于如何使用特定的 BLAS 库(最好使用 pip)从源代码构建 scipy 有什么建议吗?
【问题讨论】:
-
这个github问题可能是相关的:github.com/scipy/scipy/issues/16308
-
我正在尝试在 Cygwin 上运行安装,看来问题是 openblas-devel 根本不存在。
标签: pip scipy blas intel-mkl meson-build