pip3 install chromadb on MacOS 13 (i9 hardware) fails:
Building wheels for collected packages: hnswlib
Building wheel for hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for hnswlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running bdist_wheel
running build
running build_ext
creating var
creating var/folders
creating var/folders/q_
creating var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn
creating var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/tmpq86o7pij.cpp -o var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/tmpq86o7pij.o -std=c++14
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c /var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/tmpkpsz3vsz.cpp -o var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/tmpkpsz3vsz.o -fvisibility=hidden
building 'hnswlib' extension
creating build
creating build/temp.macosx-10.9-universal2-cpython-311
creating build/temp.macosx-10.9-universal2-cpython-311/python_bindings
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/pip-build-env-i22faqo5/overlay/lib/python3.11/site-packages/pybind11/include -I/private/var/folders/q_/f5sh90n16hb55w1tz2_s2vqw0000gn/T/pip-build-env-i22faqo5/overlay/lib/python3.11/site-packages/numpy/core/include -I./hnswlib/ -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c ./python_bindings/bindings.cpp -o build/temp.macosx-10.9-universal2-cpython-311/./python_bindings/bindings.o -O3 -march=native -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO=\"0.7.0\" -std=c++14 -fvisibility=hidden
clang: error: the clang compiler does not support '-march=native'
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 hnswlib
Failed to build hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects
Unfortunately, clang cannot be updated beyond 14.0.0 on non-M1 hardware (related) because it is managed by XCode
pip3 install chromadbon MacOS 13 (i9 hardware) fails:Unfortunately, clang cannot be updated beyond 14.0.0 on non-M1 hardware (related) because it is managed by XCode