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.

pip install fails on spacy v0.100.0

See original GitHub issue

Hi, I’ve never had any problems installing spacy in the past, but for this latest version (on OS X El Capitan, with both Python 3.5 and 2.7.10), pip install failed. The full log output is attached below. After failing to build a spacy wheel, here’s what happened:

Installing collected packages: spacy
  Running setup.py install for spacy
    Complete output from command /Users/burtondewilde/.pyenv/versions/3.5.0/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/w7/dfn6swb12cv8sfbshhqfwwb00000gn/T/pip-build-y56zthfr/spacy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/w7/dfn6swb12cv8sfbshhqfwwb00000gn/T/pip-nl2o3k3q-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    package init file 'spacy/tests/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/matcher/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/morphology/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/munge/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/parser/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/serialize/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/spans/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/tagger/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/tokenizer/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/tokens/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/vectors/__init__.py' not found (or not a regular file)
    package init file 'spacy/tests/vocab/__init__.py' not found (or not a regular file)
    running build_ext
    building 'spacy.lexeme' extension
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/burtondewilde/.pyenv/versions/3.5.0/include/python3.5m -I/private/var/folders/w7/dfn6swb12cv8sfbshhqfwwb00000gn/T/pip-build-y56zthfr/spacy/include -I/Users/burtondewilde/.pyenv/versions/3.5.0/include/python3.5m -c spacy/lexeme.cpp -o build/temp.macosx-10.10-x86_64-3.5/spacy/lexeme.o -O3 -Wno-strict-prototypes -Wno-unused-function -mmacosx-version-min=10.8 -stdlib=libc++
    In file included from spacy/lexeme.cpp:259:
    In file included from /private/var/folders/w7/dfn6swb12cv8sfbshhqfwwb00000gn/T/pip-build-y56zthfr/spacy/include/numpy/arrayobject.h:4:
    In file included from /private/var/folders/w7/dfn6swb12cv8sfbshhqfwwb00000gn/T/pip-build-y56zthfr/spacy/include/numpy/ndarrayobject.h:18:
    In file included from /private/var/folders/w7/dfn6swb12cv8sfbshhqfwwb00000gn/T/pip-build-y56zthfr/spacy/include/numpy/ndarraytypes.h:5:
    /private/var/folders/w7/dfn6swb12cv8sfbshhqfwwb00000gn/T/pip-build-y56zthfr/spacy/include/numpy/npy_endian.h:11:14: fatal error: 'endian.h' file not found
        #include <endian.h>
                 ^
    1 error generated.
    error: command 'clang' failed with exit status 1

Any ideas what’s gone wrong? Thanks very much!

pip_install_spacy.txt

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
evaljycommented, May 4, 2017

Hi I still have the same trouble to install my Spacy on both conda and pip. Are there any solutions for that? Thanks!

0reactions
lock[bot]commented, May 8, 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

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 >
pip install spacy==1.4.0 - PyPI
100.1: Fix install for OSX. v0. 100 included header files built on Linux that caused installation to fail on OSX. This should now...
Read more >
SpaCy Install (extended) fails with pip install - Stack Overflow
I tried pip install -U spacy then which seemed to work fine (no error messages) but further commands for using SpaCy (installing a...
Read more >
Installing SpacePy — SpacePy v0.4.1 Manual
If you already have a working Python setup, install SpacePy by: ... If pip completely fails to build, a common issue is a...
Read more >
Installation & Setup · Prodigy · An annotation tool for AI ...
Prodigy supports macOS, Linux and Windows and can be installed on Python 3.6 and above. ... For example, models trained with spaCy v3.1...
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