Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"ERROR: Failed building wheel for chroma-hnswlib" trying to install chromadb on Mac / VScode

I tried to install chromadb on my .venv and I got the ERROR: Failed building wheel for chroma-hnswlib.

More info about the error below:

[Building wheel for chroma-hnswlib (pyproject.toml) ... error
error: subprocess-exited-with-error

Building wheel for chroma-hnswlib (pyproject.toml) did not run successfully.
exit code: 1
[17 lines of output]
running bdist_wheel

*Continues the error (...)*

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 chroma-hnswlib
Failed to build chroma-hnswlib
ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects]

I'm using VS code in a Mac. Python version 3.11.4 in my .venv

Already tried updating Pip and the Setup tools, didn't worked. Anyone has another solution for that?

like image 518
Rafael Meller Avatar asked Oct 24 '25 16:10

Rafael Meller


1 Answers

Following up on @Harit Sharma's answer: it requires Microsoft Visual C++ 14.0 or greater Therefore install Microsoft C++ Build Tools from https://visualstudio.microsoft.com/visual-cpp-build-tools/ Then follow the steps on: https://github.com/bycloudai/InstallVSBuildToolsWindows

It will solve your problem.

like image 79
user2295798 Avatar answered Oct 27 '25 07:10

user2295798



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!