Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

pixi( https://pixi.prefix.dev/latest/ ) is package management tool like conda.
How can I use spacy by pixi? Especially, what would be the equivalent command for python -m spacy download?

conda install -c conda-forge spacy
python -m spacy download en_core_web_sm
You must be logged in to vote

Replies: 1 comment

Comment options

That can be tricky but here is a step by step process.

Installing spaCy with pixi:

pixi add spacy

The tricky part, python -m spacy download equivalent:
This is where it gets nuanced. spaCy models like en_core_web_sm are Python packages, not conda packages.

So there are two approaches:
Use pixi's PyPI support:

pixi add --pypi en-core-web-sm

or add it to your pixi.toml:

[pypi-dependencies]
en-core-web-sm = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl"}

Run the download command via pixi shell:

pixi shell
python -m spacy download en_core_web_sm

I recommend going with the use pixi's PyPI support or add it to your pixi.toml.

I hope this was helpful, please mark it as answered if it was. Thank you!

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
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.