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

Spacy packages not installable via (uv) pip #2637

Open
jcorrie opened this issue Oct 27, 2024 · 2 comments
Open

Spacy packages not installable via (uv) pip #2637

jcorrie opened this issue Oct 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jcorrie
Copy link

jcorrie commented Oct 27, 2024

Describe the bug

As discussed at astral-sh/uv#5478, installing spacy models via HF hub seems not to work due to the version specifier "any" being incompatible with the pip specification.

Reproduction

pip install uv
uv venv
.venv/Scripts/activate
uv pip install
uv pip install "en_core_web_sm @ https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl"

Logs

error: The wheel filename "en_core_web_sm-any-py3-none-any.whl" has an invalid version: expected version to start with a number, but no leading ASCII digits were found

System info

- huggingface_hub version: 0.26.1
- Platform: Windows-11-10.0.22631-SP0
- Python version: 3.12.2
@Wauplin
Copy link
Contributor

Wauplin commented Oct 28, 2024

Hi @jcorrie, thanks for reporting. I think this is an issue more related to https://github.com/explosion/spacy-huggingface-hub (if still maintained).

@jtauber
Copy link

jtauber commented Nov 9, 2024

is there a workaround involving downloading and renaming the wheel?

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

3 participants