Downloading model error: ModuleNotFoundError: No module named 'spacy.symbols' #13184
-
When following the The error is: There was an issued open for the same error it appears that was not resolved: #12847. Windows
Linux
If the repo is not cloned locally and the virtual environment set up inside My EnvironmentspaCy version: 3.7.2 Colton |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The issue isn't where the venv is, but the contents of your working directory. If you have a clone of the repo, python will first try to import Editable installs are only recommended if you're doing active development on spacy itself (https://spacy.io/usage/#source), so the easiest solution is to use a different working directory than the spacy repo directory. |
Beta Was this translation helpful? Give feedback.
-
Hi Adriane. Thanks for the clarification! |
Beta Was this translation helpful? Give feedback.
The issue isn't where the venv is, but the contents of your working directory. If you have a clone of the repo, python will first try to import
spacy
from the directoryspacy/
instead of from the venv. And if you don't have an editable install inspacy/
, thenspacy/
is missing the compiled cython modules and the import fails.Editable installs are only recommended if you're doing active development on spacy itself (https://spacy.io/usage/#source), so the easiest solution is to use a different working directory than the spacy repo directory.