Shylajhaa
Shylajhaa

Reputation: 1688

Error while installing spacy

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

Answers (3)

Claude COULOMBE
Claude COULOMBE

Reputation: 3738

Try this with admin rights:

python -m spacy download en

Upvotes: 0

Shylajhaa
Shylajhaa

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

sophros
sophros

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

Related Questions