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.

Installation Error "No module named cymem.cymem" El Capitan, Ananconda, spacy-0.99

See original GitHub issue

I am on Mac OSX El Capitan and using Anaconda with a fresh install of python in my home dir.

MacBook-Pro:anaconda vikram$ which python /Users/vikram/anaconda/bin/python

When running python -m spacy.en.download all I get the error: /Users/vikram/anaconda/bin/python: No module named cymem.cymem

While installing spacy there was a message about possible conflict in cymem package which it automatically resolved.

MacBook-Pro:anaconda vikram$ conda install spacy Fetching package metadata: … Solving package specifications: … Warning: 4 possible package resolutions (only showing differing packages): [u’cymem-1.30-0.tar.bz2’, u’murmurhash-0.24-0.tar.bz2’], [u’cymem-1.30-py27_0.tar.bz2’, u’murmurhash-0.24-0.tar.bz2’], [u’cymem-1.30-py27_0.tar.bz2’, u’murmurhash-0.24-py27_0.tar.bz2’], [u’cymem-1.30-0.tar.bz2’, u’murmurhash-0.24-py27_0.tar.bz2’],

Package plan for installation in environment /Users/vikram/anaconda:

The following packages will be downloaded:

package build
python-2.7.11 0 9.9 MB
cloudpickle-0.1.1 py27_0 15 KB
conda-env-2.4.5 py27_0 24 KB
cymem-1.30 0 39 KB
murmurhash-0.24 0 15 KB
plac-0.9.1 py27_0 31 KB
setuptools-18.5 py27_0 343 KB
text-unidecode-1.0 py27_0 62 KB
conda-3.18.9 py27_0 176 KB
preshed-0.44 py27_0 85 KB
thinc-4.0.0 py27_0 207 KB
spacy-0.99 np110py27_0 2.6 MB
------------------------------------------------------------
                                       Total:        13.5 MB

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
honnibalcommented, Dec 12, 2015

This is some great debugging — we really appreciate this, thanks!

If you just want to get up and running, it seems easier to use pip instead of conda, as it seems our package on conda isn’t correct. While we sort the issue out, I suggest the following:

\1. Start with a clean conda environment

`conda create --name myenv numpy`

The conda create command requires you to specify at least one package to install. I always find this super confusing. The important thing here is that you can’t write spacy! If you do, spacy will be installed from the conda package, when we want to install it from pip.

\2. Activate the environment

source activate myenv

\3. Install with pip

pip install spacy

\4. Install data

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

0reactions
lock[bot]commented, May 9, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation Error "No module named cymem ... - Bountysource
I am on Mac OSX El Capitan and using Anaconda with a fresh install of python in my home dir. MacBook-Pro:anaconda vikram$ which...
Read more >
spacy fails to run with error: 'cymem.cymem' has no attribute ...
Uninstalling thinc and cymem and then reinstalling spacy fixed this issue for me pip uninstall thinc pip uninstall cymem pip install spacy.
Read more >
Import error: No module named en - spacy - YouTube
Import error : No module named en - spacy #nomodulenameden #pipinstall #python # spacy #NLP #motechapp.
Read more >
spacy fails to run with error: 'cymem.cymem' has ... - splunktool
Installation is via pip, and requires Cython. Before installing, make sure that your pip, setuptools and wheel are up to date.. spaCy is ......
Read more >
[FIXED] Issues running Tensorflow Object Detection on ...
Traceback (most recent call last): File "Tensorflow/models/research/object_detection/model_main_tf2.py", line 114, in <module> ...
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