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

Installation issues #15

Closed
excubo-jg opened this issue Jun 1, 2024 · 2 comments
Closed

Installation issues #15

excubo-jg opened this issue Jun 1, 2024 · 2 comments

Comments

@excubo-jg
Copy link

If I run
pip install "rerankers[all]"
I get this error:
ERROR: Could not build wheels for nmslib, which is required to install pyproject.toml-based projects

Sequentially applying the install options, pip install "rerankers[rankllm]" fails with this message. It seems that nmslib is only maintained until python 3.8 (there is a fork nmslib-metabrainz which supports newer python versions). The rankers readme though states
'# Note: RankLLM is only supported on Python 3.10+! This will not work with Python 3.9
so I am not sure how to resolve this.

Also pip install "rerankers[fastrank]" gives this warning message:
WARNING: rerankers 0.3.0 does not provide the extra 'fastrank'

@bclavie
Copy link
Collaborator

bclavie commented Jun 6, 2024

Thanks for flagging this!

Also pip install "rerankers[fastrank]" gives this warning message:
WARNING: rerankers 0.3.0 does not provide the extra 'fastrank'

Whoops, this should say flashrank, it's a pretty big mistake that I let slip onto the README!

Re: the nmslib issue, it's quite odd. This is an error I used to get in the past on M-chips Macs, that went away eventually, but I just uninstalled nmslib in an environment that (previously) built it fine and the error is back. I will try and figure out an elegant way to fallback to the metabrainz fork if I can't find another way to make it install fine.

@bclavie
Copy link
Collaborator

bclavie commented Jul 30, 2024

Hey, closing this and centralising issues around nmslib on the other issue (sadly no resolution for now).

@bclavie bclavie closed this as completed Jul 30, 2024
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