× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
meson setup /private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13 /private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13/.mesonpy-imob44ps -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13/.mesonpy-imob44ps/meson-python-native-file.ini
The Meson build system
Version: 1.4.1
Source dir: /private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13
Build dir: /private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13/.mesonpy-imob44ps
Build type: native build
Project name: py3nj
Project version: 0.2.1
Fortran compiler for the host machine: gfortran (gcc 14.1.0 "GNU Fortran (Homebrew GCC 14.1.0_1) 14.1.0")
Fortran linker for the host machine: gfortran ld64 1053.12
C compiler for the host machine: cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.3.9.4)")
C linker for the host machine: cc ld64 1053.12
Host machine cpu family: aarch64
Host machine cpu: aarch64
Program python found: YES (/opt/miniconda3/bin/python)
Run-time dependency OpenMP found: NO (tried system)
../meson.build:48:17: ERROR: Dependency "openmp" not found, tried system
A full log can be found at /private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13/.mesonpy-imob44ps/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.
'''
So, it has something to do with openmp but I already have libomp installed with brew.
I get this error when trying to install py3nj:
''' pip install --no-cache-dir py3nj Collecting py3nj Downloading py3nj-0.2.1.tar.gz (49 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.0/50.0 kB 6.0 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [20 lines of output]
meson setup /private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13 /private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13/.mesonpy-imob44ps -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13/.mesonpy-imob44ps/meson-python-native-file.ini The Meson build system Version: 1.4.1 Source dir: /private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13 Build dir: /private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13/.mesonpy-imob44ps Build type: native build Project name: py3nj Project version: 0.2.1 Fortran compiler for the host machine: gfortran (gcc 14.1.0 "GNU Fortran (Homebrew GCC 14.1.0_1) 14.1.0") Fortran linker for the host machine: gfortran ld64 1053.12 C compiler for the host machine: cc (clang 15.0.0 "Apple clang version 15.0.0 (clang-1500.3.9.4)") C linker for the host machine: cc ld64 1053.12 Host machine cpu family: aarch64 Host machine cpu: aarch64 Program python found: YES (/opt/miniconda3/bin/python) Run-time dependency OpenMP found: NO (tried system)
../meson.build:48:17: ERROR: Dependency "openmp" not found, tried system
A full log can be found at /private/var/folders/3l/1sx949l54l1by0gh1gh09xnm0000gn/T/pip-install-bewrgd3r/py3nj_5bbd1d5ad69f48368f5c26922e410d13/.mesonpy-imob44ps/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. '''
So, it has something to do with openmp but I already have libomp installed with brew.