ModuleNotFoundError: No module named 'thinc.types' #7357
-
How to reproduce the problemI am working in a Jupyter notebook and do the following steps: !pip install spacy==2.3.5
!python3 -m spacy download en_core_web_sm import spacy
nlp = spacy.load("en_core_web_sm") I get the following stacktrace:
Your EnvironmentInfo about spaCy
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Which version of |
Beta Was this translation helpful? Give feedback.
-
NOTE: These were probably auto-installed as dependencies. Not something I installed separately. |
Beta Was this translation helpful? Give feedback.
-
Ah, that would explain it - |
Beta Was this translation helpful? Give feedback.
-
Whoops, understood. Downgrading |
Beta Was this translation helpful? Give feedback.
Ah, that would explain it -
spacy-transformers
1.x is compatible with spaCy v3, but not spaCy v2. You'll have to downgrade that lib to 0.6.2 (or uninstall it entirely if you don't use it anyway. You'd use it if you want to have transformer-based models in spaCy).