question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing spaCy

See original GitHub issue

I installed spacy using

sudo pip install spacy

Within Python version 2.7.11, I try

>>> import spacy

and the following error is returned:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>

Trying within the Terminal

python -m spacy.en.download --force all

outputs

    /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named spacy.en

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
IsabelMeranercommented, Oct 17, 2017

I’m having a similar problem while installing spacy. As I’m working with python3 in pycharm, I tried: python3 -m spacy.en.download --force all

Spacy seems to be installed on the system: $ pip list | grep spacy spacy (1.9.0)

But when I run my code, I get following error: ImportError: No module named 'spacy'

I already tried running the installation from the anaconda folder, using: conda install -c conda-forge spacy=1.9.0

But it doesn’t seem to work… Can anyone help me to resolve this issue?

1reaction
evanbiederstedtcommented, Jan 11, 2016

Apologies for the inconvenience.

My pip is actually set to Python 3.4 (I expected that to be pip3).

Therefore, I should use

python3 -m spacy.en.download --force all

Please close. Sorry, I am a fool.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Cannot install module spaCy - Stack Overflow
15 Answers 15 · Go to C:\Users\XYZ\AppData\Local\pip and then delete the cache folder · Then upgrade your pip python -m pip install --upgrade...
Read more >
Install spaCy · spaCy Usage Documentation
This error means that the spaCy module can't be located on your system, or in your environment. Make sure you have spaCy installed....
Read more >
Cannot Install Spacy on Windows 10 for Python 3.8 #5423
I have installed a Python 3.8.2 and put in "pip install -U spacy" to CMD ... (6.1 MB) Installing build dependencies ... error...
Read more >
spacy 1.8.2 - PyPI
spaCy is a library for advanced natural language processing in Python and Cython. spaCy is built on the very latest research, but it...
Read more >
ModuleNotFoundError: No module named 'spacy' in Python
The Python "ModuleNotFoundError: No module named 'spacy'" occurs when we forget to install the spacy module before importing it or install it in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found