You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows平台编译Numpy 1.26.0源码遇CBLAS检测问题求助

Windows平台编译Numpy 1.26.0源码求助
  • 已完成OpenBLAS编译安装:依赖Rtools提供的gfortran、gcc,配合Microsoft Visual Studio,编译完成后输出信息如下:
OpenBLAS build complete. (BLAS CBLAS LAPACK LAPACKE)

            OS               ... WINNT
            Architecture     ... x86_64
            BINARY           ... 64bit
            C compiler       ... GCC  (cmd & version : cc.exe (Built by Jeroen for the R-project) 10.3.0)
            Fortran compiler ... GFORTRAN  (cmd & version : GNU Fortran (Built by Jeroen for the R-project) 10.3.0)
            Library Name     ... libopenblas_zenp-r0.3.20.a (Multi-threading; Max num-threads is 2)
  • 编译Numpy操作:下载Numpy 1.26.0源码后,执行命令:
    python -m build --wheel --no-isolation .

  • 编译报错:过程中已检测到OpenBLAS库,但CBLAS接口检测失败,错误信息如下:

Library m found: NO
Found pkg-config: C:\rtools40\ucrt64\bin\pkg-config.EXE (0.29.2)
Run-time dependency openblas found: YES 0.3.20
Checking if "CBLAS" with dependency openblas: links: NO
Found CMake: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE (3.17.20032601)
WARNING: CMake Toolchain: Failed to determine CMake compilers state
Run-time dependency cblas found: NO (tried pkgconfig and cmake)

numpy\1.26.0\numpy-1.26.0\numpy\meson.build:189:4: ERROR: Problem encountered: No CBLAS interface detected! Install a BLAS library with CBLAS support, or use the `allow-noblas` build option (note, this may be up to 100x slower for some linear algebra operations). 

注:已知PyPI.org提供对应whl包,但不希望使用该包。

内容的提问来源于stack exchange,提问作者RajoraGanesh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 07:17:47