Skip to content

spacy.cli.download doesn't work for transformer model #13079

Discussion options

You must be logged in to vote

Thanks for the report! Some context as to why this happens: The spacy[transformers] extra package only installs spacy-transformers whereas the models in 3.7.x depend on spacy-curated-transformers. So, the entry points in the latter are not initialized during the first import spacy call. The spacy.cli.download invocation installs the dependency, but it's too late to reload the entry points, which is why one needs to reload the interpreter/REPL.

We'll look into updating the error message to make it clarify this error case.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Vasniktel
Comment options

@adrianeboyd
Comment options

Answer selected by svlandeg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Installation issues
4 participants
Converted from issue

This discussion was converted from issue #13072 on October 23, 2023 09:25.