Skip to content

Downloading model error: ModuleNotFoundError: No module named 'spacy.symbols' #13184

Discussion options

You must be logged in to vote

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 directory spacy/ instead of from the venv. And if you don't have an editable install in spacy/, then spacy/ 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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ojo4f3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Installation issues
2 participants
Converted from issue

This discussion was converted from issue #13175 on December 05, 2023 18:12.