python -m spacy download en_core_web_sm fails using spacy 3.0.3

Viewed 1511

Why am I getting this error AttributeError: module 'srsly' has no attribute 'read_yaml'

when I attempt python -m spacy download en_core_web_sm

I've been following the instructions here Install spaCy

2 Answers

I was using an earlier version of srsly which gave me this issue. Fixed it by upgrading it to latest version

pip install -U srsly

I had the same problem recently. Solved it by doing

pip uninstall spacy
pip install spacy 2.3.2

Its maybe a bug due to the latests versions of spacy

Related