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

编译SciPy源码失败:提示未找到OpenBLAS依赖

解决SciPy编译失败(找不到OpenBLAS依赖)的方案

问题根源

安装browsergym时触发SciPy源码编译,但macOS系统默认未预装OpenBLAS,导致Meson构建系统无法定位该依赖,编译终止。

解决步骤

  • 安装OpenBLAS依赖
    使用Mac常用包管理器Homebrew安装OpenBLAS:
    brew install openblas
    
  • 配置环境变量,让编译工具定位OpenBLAS
    激活虚拟环境后,执行以下命令设置环境变量:
    export OPENBLAS=$(brew --prefix openblas)
    export CFLAGS="-I$OPENBLAS/include"
    export LDFLAGS="-L$OPENBLAS/lib"
    
  • 重新执行browsergym安装命令
    保持虚拟环境激活状态,再次运行安装指令:
    /Users/pengbo/PycharmProjects/OpenManus/.venv2/bin/python \
      /Users/pengbo/Applications/PyCharm Professional Edition.app/Contents/plugins/python-ce/helpers/packaging_tool.py \
      install browsergym~=0.13.3
    

备选方案(跳过源码编译)

若不想通过源码编译SciPy,可先安装预编译版本,再安装browsergym:

pip install scipy~=1.11.0 --only-binary :all:
pip install browsergym~=0.13.3

注:需确认当前Python版本有对应的SciPy预编译包可用。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.13 12:47:03