How can I install azint on MacOS?
gudlot opened this issue · comments
Hi,
my MacOS version is currently Ventura 13.3. How can I install azint there? I was not able to install it with conda install -c maxiv azint
.
On the maxiv conda channel is no azint for MacOS. I tried to install it with pip install .
after a git clone, but it failed as well.
Error message in terminal:
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/user/anaconda3/envs/envn/include -arch arm64 -fPIC -O2 -isystem /Users/user/anaconda3/envs/envn/include -arch arm64 -I/private/var/folders/03/jbjq0pnd4kl1f7tvfg3fr4k00000gn/T/pip-build-env-asvs_krq/overlay/lib/python3.11/site-packages/pybind11/include -I/Users/user/anaconda3/envs/envn/include/python3.11 -c azint.cpp -o build/temp.macosx-11.0-arm64-cpython-311/azint.o -fvisibility=hidden -g0 -std=c++17 -fopenmp
clang: error: unsupported option '-fopenmp'
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for azint
Failed to build azint
ERROR: Could not build wheels for azint, which is required to install pyproject.toml-based projects
Thank you for your help.
Solved!
How?
brew install llvm libomp
git clone https://github.com/maxiv-science/azint.git
cd azint
CC=$(brew --prefix llvm)/bin/clang CXX=$(brew --prefix llvm)/bin/clang++ pip install .