hnswlib
hnswlib copied to clipboard
Resolve wheel build failure on x86_64 architecture due to -march=native flag
The hnswlib wheel build failed on my MacOS (x86_64 architecture) when I run pip install hnswlib
.
clang: error: the clang compiler does not support '-march=native'
error: command '/usr/bin/gcc' 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
Similar to the solution of the previous merged PR, by removing the building flag resolves the issue.
pip install .
Looking in indexes: https://pypi.python.org/simple/
...
Successfully built hnswlib
Installing collected packages: hnswlib
Successfully installed hnswlib-0.7.0