Skip to content

Commit c32d7cf

Browse files
authored
Update installation of spacy models from hub spacy.md (#1422)
The update in the way to install spacy models from the hub comes from how pip parse the URL to check pacage name and version. As it detect's "any" as version, it can raise an error. Adding the name of the package alongside the URL solve this. More info in this GitHub issue: explosion/spaCy#13599
1 parent 0a91bda commit c32d7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/hub/spacy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ All models on the Hub come up with useful features
2424
All `spaCy` models from the Hub can be directly installed using pip install.
2525

2626
```bash
27-
pip install https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl
27+
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"
2828
```
2929

3030
To find the link of interest, you can go to a repository with a `spaCy` model. When you open the repository, you can click `Use in spaCy` and you will be given a working snippet that you can use to install and load the model!

0 commit comments

Comments
 (0)