spaCy: pip install fails on spacy v0.100.0

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

About this issue

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

Most upvoted comments

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