Reputation: 1688
Error while finding module specification for
'spacy.en.download'
(ModuleNotFoundError: No module named 'spacy.en')
I'm getting this error while executing
python -m spacy.en.download
Upvotes: 2
Views: 5949
Reputation: 1688
My issue got resolved.
python -m spacy.en.download
works only if the installation folder has admin rights. If your installation folder doesn't have admin rights, try this:
import spacy
nlp = spacy.load(<spacy model you wish to use>)
To know more about various spacy models refer: https://spacy.io/models/
Upvotes: 3
Reputation: 16758
You should probably install spacy first before executing a module spacy.en.download
from it.
Before your command run: conda install spacy
Upvotes: 1