Spacy/ thic.api #7695
-
I installed Prodigy and SpaCy. Getting error <ImportError: cannot import name 'get_array_module' from 'thinc.api'> Your EnvironmentInfo about spaCy
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It sounds like you may have ended up with a mixture of spacy v2 and spacy v3 dependencies, possibly from a downgrade that didn't run cleanly. Our best suggestion is to try again in a brand new venv, installing prodigy directly without upgrading or downgrading spacy, which doesn't always work correctly with python -m venv .venv
source .venv/bin/activate
pip install -U pip setuptools wheel
pip install prodigy-*.whl prodigy should automatically pull in the correct versions of spacy and all its dependencies. |
Beta Was this translation helpful? Give feedback.
It sounds like you may have ended up with a mixture of spacy v2 and spacy v3 dependencies, possibly from a downgrade that didn't run cleanly.
Our best suggestion is to try again in a brand new venv, installing prodigy directly without upgrading or downgrading spacy, which doesn't always work correctly with
pip
. Try something like this:prodigy should automatically pull in the correct versions of spacy and all its dependencies.