I try to download spacy model on Jupyter notebook but it prints out 'invalid syntax'
python -m spacy download 'en_core_web_sm'
Is there any solution to help me download the model successfully?
To help someone in the future. For me this problem was because I installed spacy not correctly, just by using pip install spacy.
Follow official instructions from the website, and it will download correctly.
In anaconda:
%pip install -U pip setuptools wheel
%pip install -U spacy
Once spacy is installed, run:
!python -m spacy download en_core_web_sm
This worked in my case, when I've had the same problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With