From 833ee19ab76cc5c9cf463eaf3f40838716bbb28b Mon Sep 17 00:00:00 2001 From: Ehsan <1574406+ehsk@users.noreply.github.com> Date: Thu, 18 Jan 2024 21:50:38 -0500 Subject: [PATCH] Update installation.md to fix nmslib on Apple M-series (#1774) --- docs/installation.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/installation.md b/docs/installation.md index bbe022b51..4c0465d94 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -54,7 +54,10 @@ If you're on a Mac with an M-series (i.e., ARM) processor, the following recipe ```bash conda install wget -y conda install -c conda-forge openjdk=11 maven -y -conda install -c conda-forge lightgbm nmslib -y +conda install -c conda-forge lightgbm -y + +# from https://github.com/nmslib/nmslib/issues/476#issuecomment-1594889437 +CFLAGS="-mavx -DWARN(a)=(a)" pip install --use-pep517 nmslib # from https://github.com/facebookresearch/faiss/blob/main/INSTALL.md conda install -c pytorch faiss-cpu=1.7.4 blas=1.0 -y