Skip to content

How to add a Spacy model to pyproject.toml #1387

Answered by drothermel
cdolek asked this question in Q&A
Discussion options

You must be logged in to vote

According to the Spacy docs:

To download a trained pipeline directly using pip, point pip install to the URL or local path of the wheel file or archive. Installing the wheel is usually more efficient.

# With external URL
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0-py3-none-any.whl
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz

# Using spacy info to get the external URL
pip install $(spacy info en_core_web_sm --url)

# With local file
pip install /Users/you/en_core_web_sm-3.0.0-py3-none-any.whl
pip install /Users/you/en_core_web_sm-3.0.0.tar.gz

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cdolek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants