admin管理员组

文章数量:1345090

I'm trying to install SciPy, and it's building from source. However, this fails because of the error Dependency "OpenBLAS" not found, tried pkgconfig, framework and cmake.

Python version: 3.12.6

source /Users/pengbo/PycharmProjects/OpenManus/.venv2/bin/activate

/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

partial error log info:

Collecting browsergym~=0.13.3
  Obtaining dependency information for browsergym~=0.13.3 from .13.3-py3-none-any.whl.metadata
  Using cached browsergym-0.13.3-py3-none-any.whl.metadata (1.1 kB)
Collecting browsergym-core==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-core==0.13.3 from .13.3-py3-none-any.whl.metadata
  Using cached browsergym_core-0.13.3-py3-none-any.whl.metadata (1.2 kB)
Collecting browsergym-miniwob==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-miniwob==0.13.3 from .13.3-py3-none-any.whl.metadata
  Using cached browsergym_miniwob-0.13.3-py3-none-any.whl.metadata (1.5 kB)
Collecting browsergym-webarena==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-webarena==0.13.3 from .13.3-py3-none-any.whl.metadata
  Using cached browsergym_webarena-0.13.3-py3-none-any.whl.metadata (2.9 kB)
Collecting browsergym-visualwebarena==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-visualwebarena==0.13.3 from .13.3-py3-none-any.whl.metadata
  Using cached browsergym_visualwebarena-0.13.3-py3-none-any.whl.metadata (2.7 kB)
Collecting browsergym-assistantbench==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-assistantbench==0.13.3 from .13.3-py3-none-any.whl.metadata
  Using cached browsergym_assistantbench-0.13.3-py3-none-any.whl.metadata (1.7 kB)
Collecting browsergym-experiments==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-experiments==0.13.3 from .13.3-py3-none-any.whl.metadata
  Using cached browsergym_experiments-0.13.3-py3-none-any.whl.metadata (2.0 kB)
Collecting browsergym-workarena>=0.4.1 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-workarena>=0.4.1 from .4.1-py3-none-any.whl.metadata
  Using cached browsergym_workarena-0.4.1-py3-none-any.whl.metadata (12 kB)
Collecting weblinx-browsergym>=0.0.1dev14 (from browsergym~=0.13.3)
  Obtaining dependency information for weblinx-browsergym>=0.0.1dev14 from .0.1.dev14-py3-none-any.whl.metadata
  Using cached weblinx_browsergym-0.0.1.dev14-py3-none-any.whl.metadata (1.2 kB)
Collecting datasets (from browsergym-assistantbench==0.13.3->browsergym~=0.13.3)
  Obtaining dependency information for datasets from .5.0-py3-none-any.whl.metadata
  Using cached datasets-3.5.0-py3-none-any.whl.metadata (19 kB)
Requirement already satisfied: numpy in /Users/pengbo/PycharmProjects/OpenManus/.venv2/lib/python3.12/site-packages (from browsergym-assistantbench==0.13.3->browsergym~=0.13.3) (2.2.4)
Collecting scipy (from browsergym-assistantbench==0.13.3->browsergym~=0.13.3)
  Using cached scipy-1.15.2.tar.gz (59.4 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'

  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      + meson setup /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984 /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/.mesonpy-y1kha2z_ -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/.mesonpy-y1kha2z_/meson-python-native-file.ini
      The Meson build system
      Version: 1.7.1
      Source dir: /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984
      Build dir: /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/.mesonpy-y1kha2z_
      Build type: native build
      Project name: scipy
      Project version: 1.15.2
      C compiler for the host machine: cc (clang 13.0.0 "Apple clang version 13.0.0 (clang-1300.0.29.30)")
      C linker for the host machine: cc ld64 711
      C++ compiler for the host machine: c++ (clang 13.0.0 "Apple clang version 13.0.0 (clang-1300.0.29.30)")
      C++ linker for the host machine: c++ ld64 711
      Cython compiler for the host machine: cython (cython 3.0.12)
      Host machine cpu family: aarch64
      Host machine cpu: aarch64
      Program python found: YES (/Users/pengbo/PycharmProjects/OpenManus/.venv2/bin/python)
      Found pkg-config: YES (/opt/homebrew/bin/pkg-config) 2.4.3
      Run-time dependency python found: YES 3.12
      Program cython found: YES (/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-build-env-u8qh46mm/overlay/bin/cython)
      Compiler for C supports arguments -Wno-unused-but-set-variable: NO
      Compiler for C supports arguments -Wno-unused-function: YES
      Compiler for C supports arguments -Wno-conversion: YES
      Compiler for C supports arguments -Wno-misleading-indentation: YES
      Library m found: YES
      Fortran compiler for the host machine: gfortran (gcc 14.2.0 "GNU Fortran (Homebrew GCC 14.2.0_1) 14.2.0")
      Fortran linker for the host machine: gfortran ld64 711
      ../meson.build:86: WARNING: Consider using the built-in option for language standard version instead of using "-std=legacy".
      Compiler for Fortran supports arguments -Wno-conversion: YES
      Compiler for C supports link arguments -Wl,-dead_strip: YES
      Checking if "-Wl,--version-script" links: NO
      Program tools/generate_f2pymod.py found: YES (/Users/pengbo/PycharmProjects/OpenManus/.venv2/bin/python /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/tools/generate_f2pymod.py)
      Program scipy/_build_utils/tempita.py found: YES (/Users/pengbo/PycharmProjects/OpenManus/.venv2/bin/python /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/scipy/_build_utils/tempita.py)
      Program pythran found: YES 0.17.0 0.17.0 (/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-build-env-u8qh46mm/overlay/bin/pythran)
      Found CMake: /opt/homebrew/bin/cmake (3.31.6)
      WARNING: CMake Toolchain: Failed to determine CMake compilers state
      Run-time dependency xsimd found: NO (tried pkgconfig, framework and cmake)
      Run-time dependency threads found: YES
      numpy-config found: YES (/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-build-env-u8qh46mm/overlay/bin/numpy-config) 2.2.4
      Run-time dependency numpy found: YES 2.2.4
      Library npymath found: YES
      pybind11-config found: YES (/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-build-env-u8qh46mm/overlay/bin/pybind11-config) 2.13.6
      Run-time dependency pybind11 found: YES 2.13.6
      Checking if "thread_local" compiles: NO
      Checking if "_Thread_local" compiles: YES
      Checking if "__thread" compiles: YES
      Configuring scipy_config.h using configuration
      Program f2py found: YES (/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-build-env-u8qh46mm/overlay/bin/f2py)
      Run-time dependency scipy-openblas found: NO (tried pkgconfig)
      Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
      Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
      
      ../scipy/meson.build:274:9: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig, framework and cmake
      
      A full log can be found at /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/.mesonpy-y1kha2z_/meson-logs/meson-log.txt
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

[notice] A new release of pip is available: 23.2.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip

I'm trying to install SciPy, and it's building from source. However, this fails because of the error Dependency "OpenBLAS" not found, tried pkgconfig, framework and cmake.

Python version: 3.12.6

source /Users/pengbo/PycharmProjects/OpenManus/.venv2/bin/activate

/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

partial error log info:

Collecting browsergym~=0.13.3
  Obtaining dependency information for browsergym~=0.13.3 from https://files.pythonhosted./packages/a0/93/3380168262005a948f87f2f0c1d2d3f3166462be072e77ae9af83a3781a1/browsergym-0.13.3-py3-none-any.whl.metadata
  Using cached browsergym-0.13.3-py3-none-any.whl.metadata (1.1 kB)
Collecting browsergym-core==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-core==0.13.3 from https://files.pythonhosted./packages/cf/73/a0328b4b0a4dfaf34854f351cad153b35989476b36a004ac7f51ce1447b1/browsergym_core-0.13.3-py3-none-any.whl.metadata
  Using cached browsergym_core-0.13.3-py3-none-any.whl.metadata (1.2 kB)
Collecting browsergym-miniwob==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-miniwob==0.13.3 from https://files.pythonhosted./packages/80/da/f337c0e7b710d8211467f897aab6ccdb25c88eee3717fc36d3c6b335efcb/browsergym_miniwob-0.13.3-py3-none-any.whl.metadata
  Using cached browsergym_miniwob-0.13.3-py3-none-any.whl.metadata (1.5 kB)
Collecting browsergym-webarena==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-webarena==0.13.3 from https://files.pythonhosted./packages/bf/1a/77c8b1d1a6a9c4dee52cd322885f5bbb172f55bf27dcdd70d08e1c8e2288/browsergym_webarena-0.13.3-py3-none-any.whl.metadata
  Using cached browsergym_webarena-0.13.3-py3-none-any.whl.metadata (2.9 kB)
Collecting browsergym-visualwebarena==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-visualwebarena==0.13.3 from https://files.pythonhosted./packages/47/5a/5022fb0e073b51caa8190b839d2055743f2f645de52af3d6afd67d22a71b/browsergym_visualwebarena-0.13.3-py3-none-any.whl.metadata
  Using cached browsergym_visualwebarena-0.13.3-py3-none-any.whl.metadata (2.7 kB)
Collecting browsergym-assistantbench==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-assistantbench==0.13.3 from https://files.pythonhosted./packages/84/28/da851395fc513ff1f00ceeaf8f2bb149446c39febfd3be92024ade3ef7dc/browsergym_assistantbench-0.13.3-py3-none-any.whl.metadata
  Using cached browsergym_assistantbench-0.13.3-py3-none-any.whl.metadata (1.7 kB)
Collecting browsergym-experiments==0.13.3 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-experiments==0.13.3 from https://files.pythonhosted./packages/af/04/d2495e033b87673e5b52b898985cf51f375b13f0520bf4ee733742db3f47/browsergym_experiments-0.13.3-py3-none-any.whl.metadata
  Using cached browsergym_experiments-0.13.3-py3-none-any.whl.metadata (2.0 kB)
Collecting browsergym-workarena>=0.4.1 (from browsergym~=0.13.3)
  Obtaining dependency information for browsergym-workarena>=0.4.1 from https://files.pythonhosted./packages/9e/bb/815d32bb8917b2d71ec3b015ac80d88afd42f0012b962616b6ed15495363/browsergym_workarena-0.4.1-py3-none-any.whl.metadata
  Using cached browsergym_workarena-0.4.1-py3-none-any.whl.metadata (12 kB)
Collecting weblinx-browsergym>=0.0.1dev14 (from browsergym~=0.13.3)
  Obtaining dependency information for weblinx-browsergym>=0.0.1dev14 from https://files.pythonhosted./packages/83/77/d6595787ef8d39f937fe88e0d372b1edae485ef6482c300ece1e5093c53c/weblinx_browsergym-0.0.1.dev14-py3-none-any.whl.metadata
  Using cached weblinx_browsergym-0.0.1.dev14-py3-none-any.whl.metadata (1.2 kB)
Collecting datasets (from browsergym-assistantbench==0.13.3->browsergym~=0.13.3)
  Obtaining dependency information for datasets from https://files.pythonhosted./packages/b4/83/50abe521eb75744a01efe2ebe836a4b61f4df37941a776f650f291aabdf9/datasets-3.5.0-py3-none-any.whl.metadata
  Using cached datasets-3.5.0-py3-none-any.whl.metadata (19 kB)
Requirement already satisfied: numpy in /Users/pengbo/PycharmProjects/OpenManus/.venv2/lib/python3.12/site-packages (from browsergym-assistantbench==0.13.3->browsergym~=0.13.3) (2.2.4)
Collecting scipy (from browsergym-assistantbench==0.13.3->browsergym~=0.13.3)
  Using cached scipy-1.15.2.tar.gz (59.4 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'

  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      + meson setup /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984 /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/.mesonpy-y1kha2z_ -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/.mesonpy-y1kha2z_/meson-python-native-file.ini
      The Meson build system
      Version: 1.7.1
      Source dir: /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984
      Build dir: /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/.mesonpy-y1kha2z_
      Build type: native build
      Project name: scipy
      Project version: 1.15.2
      C compiler for the host machine: cc (clang 13.0.0 "Apple clang version 13.0.0 (clang-1300.0.29.30)")
      C linker for the host machine: cc ld64 711
      C++ compiler for the host machine: c++ (clang 13.0.0 "Apple clang version 13.0.0 (clang-1300.0.29.30)")
      C++ linker for the host machine: c++ ld64 711
      Cython compiler for the host machine: cython (cython 3.0.12)
      Host machine cpu family: aarch64
      Host machine cpu: aarch64
      Program python found: YES (/Users/pengbo/PycharmProjects/OpenManus/.venv2/bin/python)
      Found pkg-config: YES (/opt/homebrew/bin/pkg-config) 2.4.3
      Run-time dependency python found: YES 3.12
      Program cython found: YES (/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-build-env-u8qh46mm/overlay/bin/cython)
      Compiler for C supports arguments -Wno-unused-but-set-variable: NO
      Compiler for C supports arguments -Wno-unused-function: YES
      Compiler for C supports arguments -Wno-conversion: YES
      Compiler for C supports arguments -Wno-misleading-indentation: YES
      Library m found: YES
      Fortran compiler for the host machine: gfortran (gcc 14.2.0 "GNU Fortran (Homebrew GCC 14.2.0_1) 14.2.0")
      Fortran linker for the host machine: gfortran ld64 711
      ../meson.build:86: WARNING: Consider using the built-in option for language standard version instead of using "-std=legacy".
      Compiler for Fortran supports arguments -Wno-conversion: YES
      Compiler for C supports link arguments -Wl,-dead_strip: YES
      Checking if "-Wl,--version-script" links: NO
      Program tools/generate_f2pymod.py found: YES (/Users/pengbo/PycharmProjects/OpenManus/.venv2/bin/python /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/tools/generate_f2pymod.py)
      Program scipy/_build_utils/tempita.py found: YES (/Users/pengbo/PycharmProjects/OpenManus/.venv2/bin/python /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/scipy/_build_utils/tempita.py)
      Program pythran found: YES 0.17.0 0.17.0 (/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-build-env-u8qh46mm/overlay/bin/pythran)
      Found CMake: /opt/homebrew/bin/cmake (3.31.6)
      WARNING: CMake Toolchain: Failed to determine CMake compilers state
      Run-time dependency xsimd found: NO (tried pkgconfig, framework and cmake)
      Run-time dependency threads found: YES
      numpy-config found: YES (/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-build-env-u8qh46mm/overlay/bin/numpy-config) 2.2.4
      Run-time dependency numpy found: YES 2.2.4
      Library npymath found: YES
      pybind11-config found: YES (/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-build-env-u8qh46mm/overlay/bin/pybind11-config) 2.13.6
      Run-time dependency pybind11 found: YES 2.13.6
      Checking if "thread_local" compiles: NO
      Checking if "_Thread_local" compiles: YES
      Checking if "__thread" compiles: YES
      Configuring scipy_config.h using configuration
      Program f2py found: YES (/private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-build-env-u8qh46mm/overlay/bin/f2py)
      Run-time dependency scipy-openblas found: NO (tried pkgconfig)
      Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
      Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
      
      ../scipy/meson.build:274:9: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig, framework and cmake
      
      A full log can be found at /private/var/folders/z_/3xd2r0zs0_vdtbws0vpkk_x00000gn/T/pip-install-o0sgups8/scipy_6f0dd1c25a2940bda43b2a649cb79984/.mesonpy-y1kha2z_/meson-logs/meson-log.txt
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

[notice] A new release of pip is available: 23.2.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
Share Improve this question edited 22 hours ago Nick ODell 25.7k7 gold badges46 silver badges88 bronze badges asked yesterday dominic_pengdominic_peng 32 bronze badges 4
  • 1 I wonder why pip is trying to build scipy from source when scipy has wheels published on PyPI. Your Python installation may not be compatible with those wheels. Can you activate your virtual environment, run python -VV (that's two Vs, not a W), and edit your question with the output of that command? – bgfvdu3w Commented yesterday
  • describe problem in question's body insead of writing as titled. Frankly, I don't read titles. – furas Commented yesterday
  • error shows ERROR: Dependency "OpenBLAS" not found, and it may need to install (manually) C/C++ library OpenBLAS (or its source code with header files *.h to compile it). See OpenBLAS : An optimized BLAS library – furas Commented yesterday
  • 1. openblas has been installed;2.OpenManus % python -VV Python 3.12.6 (v3.12.6:a4a2d2b0d85, Sep 6 2024, 16:08:03) [Clang 13.0.0 (clang-1300.0.29.30)] – dominic_peng Commented 17 hours ago
Add a comment  | 

1 Answer 1

Reset to default 1

One of SciPy's dependencies is a suitable BLAS (basic linear algebra subprograms) library.

To install this, you'll want to use an OS specific package manager. For OS X, the SciPy docs suggest using brew install openblas for installing OpenBLAS.

For other operating systems, the SciPy docs explain how to install OpenBLAS here.

本文标签: pythonBuilding scipy from source fails because quotOpenBLASquot is not foundStack Overflow