Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can we install it on Mac? #2

Closed
SeekPoint opened this issue Aug 13, 2020 · 4 comments
Closed

can we install it on Mac? #2

SeekPoint opened this issue Aug 13, 2020 · 4 comments
Assignees
Milestone

Comments

@SeekPoint
Copy link

it failed on

@davidmezzetti
Copy link
Member

Issue #1 notes issues with installing on Windows due to faiss but faiss does support Mac. What error did you receive when installed?

@SeekPoint
Copy link
Author

Running setup.py install for faiss-gpu ... error

@davidmezzetti
Copy link
Member

Looking at the faiss-gpu repository it says:

Prerequisite

On macOS, install libomp via Homebrew to use the wheel.

brew install libomp

Source: https://github.com/kyamagu/faiss-wheels#prerequisite

Did you run this step? I can make an update to the README to note this but everything I read says faiss supports macOS. If the issue continues, I can help if you have a stacktrace or more information.

@SeekPoint
Copy link
Author

we must change setup.py on Mac like

ghSrc/txtai % git diff
diff --git a/setup.py b/setup.py
index f525721..5cf735b 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(name="txtai",
keywords="search embedding machine-learning nlp",
python_requires=">=3.6",
install_requires=[

  •      "faiss-gpu>=1.6.3",
    
  •      "faiss-cpu>=1.6.3",
         "fasttext>=0.9.2",
         "nltk>=3.5",
         "numpy>=1.18.4",
    

then

ghSrc/txtai % python -m pip install -e .

davidmezzetti added a commit that referenced this issue Aug 17, 2020
- Adds id map for all index types to support any id type (Closes #6)
- Skip installing Faiss on Windows (Closes #1, Closes #8)
- Default to Faiss when available, Annoy otherwise
- Switch to faiss-cpu (Closes #2, Closes #9)
- Add quantize flag for Faiss (Closes #10)
@davidmezzetti davidmezzetti self-assigned this Jan 5, 2021
@davidmezzetti davidmezzetti added this to the v1.1.0 milestone May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants