Search code examples
pythonpycharmspacy

How can I properly install spaCy en_core_web_sm on PyCharm?


I have been trying to experiment with spaCy and trying to get the en_core_web_sm model with the PyCharm Terminal. I keep getting an error about the syntax. What is the correct way to install this model with the PyCharm terminal?


Solution

  • The command python -m spacy download ... is not Python, it is a command to be executed in the shell, which is why you get a syntax error. To run shell commands in PyCharm push Alt+F12 (see here).