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

Pip installation does not work #111

Open
BlaiseMuhirwa opened this issue Feb 4, 2024 · 1 comment
Open

Pip installation does not work #111

BlaiseMuhirwa opened this issue Feb 4, 2024 · 1 comment

Comments

@BlaiseMuhirwa
Copy link

I tried to install scikit-hubness with both pip and poetry, but it continues to not work. If you run poetry add scikit-hubness, which uses pip behind the hood, you get the following error:

  at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with scikit-learn (0.21.3) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "scikit-learn (==0.21.3)"'.
@VarIr
Copy link
Owner

VarIr commented May 22, 2024

PyPI is currently only shipping the outdated v0.20.1, which requires a very old scikit-learn version, as reported in the error message. Please try to install v0.30 like so:

pip install https://github.com/VarIr/scikit-hubness/archive/main.tar.gz 

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