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

NMSLIB Dependency #37

Open
phlobo opened this issue Nov 5, 2024 · 0 comments
Open

NMSLIB Dependency #37

phlobo opened this issue Nov 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@phlobo
Copy link
Member

phlobo commented Nov 5, 2024

pip install xmen fails for some users due to lack of nmslib binaries for their distribution.

Known workarounds to install nmslib:

  1. install within a conda environment, i.e.: conda install nmslib
  2. pip install --no-binary :all: nmslib
  3. CFLAGS="-mavx -DWARN(a)=(a)" pip install nmslib
  4. pip install --upgrade pybind11
    pip install 'nmslib @ git+https://github.com/nmslib/nmslib.git#egg=nmslib&subdirectory=python_bindings'

see also: allenai/scispacy#470

If this succeeds, you should be able to run pip install xmen

Long term solution:

  • Get rid of nmslib dependency and create TF-IDF indices with a more actively maintained solution
@phlobo phlobo changed the title NMSLib Dependency nmslib Dependency Nov 6, 2024
@phlobo phlobo changed the title nmslib Dependency NMSLIB Dependency Nov 6, 2024
@phlobo phlobo added the bug Something isn't working label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant