anarchy-ai / LLM-VM

irresponsible innovation. Try now at https://chat.dev/
https://anarchy.ai/
MIT License
465 stars 150 forks source link

macOS: Installation error #439

Closed cerealceec closed 4 months ago

cerealceec commented 4 months ago

Describe the bug Error during installation on macOS Monterey:

clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/77/lb8jj06x2sxcb4bmv3jh2d_r0000gp/T/pip-build-env-xu8hyp5h/overlay/lib/python3.12/site-packages/pybind11/include -I/private/var/folders/77/lb8jj06x2sxcb4bmv3jh2d_r0000gp/T/pip-build-env-xu8hyp5h/overlay/lib/python3.12/site-packages/numpy/core/include -I./hnswlib/ -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c ./python_bindings/bindings.cpp -o build/temp.macosx-10.9-universal2-cpython-312/./python_bindings/bindings.o -O3 -march=native -stdlib=libc++ -mmacosx-version-min=10.7 -DVERSION_INFO=\"0.7.3\" -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 chroma-hnswlib
Successfully built llm_vm
Failed to build chroma-hnswlib
ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects

To Reproduce Steps to reproduce the behavior:

  1. Clone LLM-VM repo
  2. Install with pip3 install .

Expected behavior Successful installation.

Screenshots

Screen Shot 2024-02-23 at 11 19 17

Desktop (please complete the following information):

cerealceec commented 4 months ago

Solution found: Set environment variable with export HNSWLIB_NO_NATIVE=1 before installing.