rnv86
rnv86

Reputation: 880

Cannot install es_core_news_sm from Spacy

When I try to install es_core_news_sm with this commmand

python -m spacy download es_core_news_sm

with conda I get this error

No module name spacy._main_;'spacy'is a package and cannot be directly executed. 

Thank you so much!

Upvotes: 0

Views: 2168

Answers (1)

Raqib
Raqib

Reputation: 1442

This could happen if conda installed an older version of spaCy. See the following issue on spaCy's github.

The fix as stated in the issue is as follows:

  1. Find the most recent version of spaCy on conda:conda search -f spacy
  2. Then run: conda install spacy=NEWEST_VERSION

The newest version of spaCy on Conda is 2.0.18

Upvotes: 1

Related Questions