Skip to content Skip to sidebar Skip to footer

Importerror Cannot Import Name Deque With Spacy

I'm trying to import spacy to use on VSCode, but I am getting an error: 'Exception has occurred: ImportError cannot import name Deque.' I did pip install -U spacy in my virtual env

Solution 1:

It is recommended that you reinstall the module "spacy" in the currently selected Python environment (the python environment shown in the lower left corner of VS Code). You could use the command "pip show spacy"(or pip3 show spacy) to check the installation location of the module:

enter image description here

Debug:

enter image description here

If it still doesn't work, please try to reinstall the python extension and reload VS Code.

Post a Comment for "Importerror Cannot Import Name Deque With Spacy"