Skip to content

Deploying a project with spaCy model dependency [ en_core_web_sm for example] to PyPi. #10932

Discussion options

You must be logged in to vote

The best way to handle non-PyPI dependencies is to have a download step that needs to be executed after your project is installed, similar to how spaCy has the download command. I'm not familiar with Poetry, but basically you would remove the model as a dependency, check if it's installed at runtime, and if not, install it or fail with an error and tell the user how to install it.

Replies: 1 comment 2 replies

Comment options

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

@polm
Comment options

Answer selected by adrianeboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pip Issues related to the pip package manager
3 participants