Closed jakubLangr closed 1 month ago
Hi,
Try this:
conda remove --name faiss_env --all -y
in case there's an existing oneconda create -n faiss_env
conda activate faiss_env
conda install -y -q python=3.11 cmake make swig mkl=2023 mkl-devel=2023 numpy scipy pytest gxx_linux-64=11.2 sysroot_linux-64 gflags
which python3
should print somewhere like miniconda3/bin/python3
conda install -c pytorch faiss-cpu=1.8.0
I did a clean install just now and just running import faiss works:
(faiss_env) mnorris@mnorris-mbp:[~]: python3
Python 3.12.5 | packaged by Anaconda, Inc. | (main, Sep 12 2024, 13:22:57) [Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import faiss
I am on Mac OSX Sonoma 14.6.1 though.
This issue is stale because it has been open for 7 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.
Summary
Install does not work despite multiple install methods, fresh conda reinstall, multiple python environments
Platform
Mac OS.X Ventura 13.5.1 Python 3.10 (newer versions did not work)
OS:
Faiss version:
Installed from: Conda Fresh Reinstall
Faiss compilation options:
Running on:
Interface:
Reproduction instructions
### Other notes I've tried `brew` install as well as other conda options to no avail. It seems that it always selects the wrong/Intel version but I'm not 100% sure and GPT/Claude etc. were of no help here as they got stuck.