Cant install spaCy on my MacOS 10.13.5 (Python 3.7)
See original GitHub issueHow to reproduce the problem
Hi, I’m working on my MacBookPro 2016. I just want to install spaCy but it crasht when I do my pip install spacy
nicolas@ionComputer:~/PycharmProjects/sentenceio$ pip3 install spacy
Collecting spacy
Using cached https://files.pythonhosted.org/packages/3c/31/e60f88751e48851b002f78a35221d12300783d5a43d4ef12fbf10cca96c3/spacy-2.0.11.tar.gz
Requirement already satisfied: numpy>=1.7 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from spacy) (1.14.5)
Requirement already satisfied: murmurhash<0.29,>=0.28 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from spacy) (0.28.0)
Requirement already satisfied: cymem<1.32,>=1.30 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from spacy) (1.31.2)
Requirement already satisfied: preshed<2.0.0,>=1.0.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from spacy) (1.0.0)
Collecting thinc<6.11.0,>=6.10.1 (from spacy)
Using cached https://files.pythonhosted.org/packages/55/fd/e9f36081e6f53699943381858848f3b4d759e0dd03c43b98807dde34c252/thinc-6.10.2.tar.gz
Collecting plac<1.0.0,>=0.9.6 (from spacy)
Using cached https://files.pythonhosted.org/packages/9e/9b/62c60d2f5bc135d2aa1d8c8a86aaf84edb719a59c7f11a4316259e61a298/plac-0.9.6-py2.py3-none-any.whl
Collecting pathlib (from spacy)
Using cached https://files.pythonhosted.org/packages/ac/aa/9b065a76b9af472437a0059f77e8f962fe350438b927cb80184c32f075eb/pathlib-1.0.1.tar.gz
Collecting ujson>=1.35 (from spacy)
Using cached https://files.pythonhosted.org/packages/16/c4/79f3409bc710559015464e5f49b9879430d8f87498ecdc335899732e5377/ujson-1.35.tar.gz
Collecting dill<0.3,>=0.2 (from spacy)
Using cached https://files.pythonhosted.org/packages/6f/78/8b96476f4ae426db71c6e86a8e6a81407f015b34547e442291cd397b18f3/dill-0.2.8.2.tar.gz
Collecting regex==2017.4.5 (from spacy)
Using cached https://files.pythonhosted.org/packages/36/62/c0c0d762ffd4ffaf39f372eb8561b8d491a11ace5a7884610424a8b40f95/regex-2017.04.05.tar.gz
Requirement already satisfied: wrapt in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from thinc<6.11.0,>=6.10.1->spacy) (1.10.11)
Requirement already satisfied: tqdm<5.0.0,>=4.10.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from thinc<6.11.0,>=6.10.1->spacy) (4.23.4)
Collecting cytoolz<0.9,>=0.8 (from thinc<6.11.0,>=6.10.1->spacy)
Using cached https://files.pythonhosted.org/packages/0f/e6/ccc124714dcc1bd511e64ddafb4d5d20ada2533b92e3173a4cf09e0d0831/cytoolz-0.8.2.tar.gz
Requirement already satisfied: six<2.0.0,>=1.10.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from thinc<6.11.0,>=6.10.1->spacy) (1.11.0)
Collecting termcolor (from thinc<6.11.0,>=6.10.1->spacy)
Using cached https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
Collecting msgpack-python (from thinc<6.11.0,>=6.10.1->spacy)
Using cached https://files.pythonhosted.org/packages/8a/20/6eca772d1a5830336f84aca1d8198e5a3f4715cd1c7fc36d3cc7f7185091/msgpack-python-0.5.6.tar.gz
Collecting msgpack-numpy==0.4.1 (from thinc<6.11.0,>=6.10.1->spacy)
Using cached https://files.pythonhosted.org/packages/2e/43/393e30e2768b0357541ac95891f96b80ccc4d517e0dd2fa3042fc8926538/msgpack_numpy-0.4.1-py2.py3-none-any.whl
Requirement already satisfied: toolz>=0.8.0 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from cytoolz<0.9,>=0.8->thinc<6.11.0,>=6.10.1->spacy) (0.9.0)
Installing collected packages: cytoolz, plac, dill, termcolor, pathlib, msgpack-python, msgpack-numpy, thinc, ujson, regex, spacy
Running setup.py install for cytoolz ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/6z/00b0rbb54rd_rcgh5nfw09w40000gn/T/pip-install-8takmx53/cytoolz/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/6z/00b0rbb54rd_rcgh5nfw09w40000gn/T/pip-record-vx2hj1nv/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.7
creating build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/compatibility.py -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/utils_test.py -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/_version.py -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/__init__.py -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/_signatures.py -> build/lib.macosx-10.6-intel-3.7/cytoolz
creating build/lib.macosx-10.6-intel-3.7/cytoolz/curried
copying cytoolz/curried/operator.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/curried
copying cytoolz/curried/__init__.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/curried
copying cytoolz/curried/exceptions.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/curried
copying cytoolz/itertoolz.pyx -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/dicttoolz.pyx -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/functoolz.pyx -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/recipes.pyx -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/utils.pyx -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/utils.pxd -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/__init__.pxd -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/recipes.pxd -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/functoolz.pxd -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/dicttoolz.pxd -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/cpython.pxd -> build/lib.macosx-10.6-intel-3.7/cytoolz
copying cytoolz/itertoolz.pxd -> build/lib.macosx-10.6-intel-3.7/cytoolz
creating build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_none_safe.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_utils.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_curried.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_compatibility.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_embedded_sigs.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_functoolz.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_inspect_args.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_doctests.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_tlz.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_signatures.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/dev_skip_test.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_recipes.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_docstrings.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_dev_skip_test.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_dicttoolz.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_serialization.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_curried_toolzlike.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
copying cytoolz/tests/test_itertoolz.py -> build/lib.macosx-10.6-intel-3.7/cytoolz/tests
running build_ext
building 'cytoolz.dicttoolz' extension
creating build/temp.macosx-10.6-intel-3.7
creating build/temp.macosx-10.6-intel-3.7/cytoolz
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c cytoolz/dicttoolz.c -o build/temp.macosx-10.6-intel-3.7/cytoolz/dicttoolz.o
cytoolz/dicttoolz.c:8277:65: error: too many arguments to function call, expected 3, have 4
return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/stddef.h:105:16: note: expanded from macro 'NULL'
# define NULL ((void*)0)
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/6z/00b0rbb54rd_rcgh5nfw09w40000gn/T/pip-install-8takmx53/cytoolz/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/6z/00b0rbb54rd_rcgh5nfw09w40000gn/T/pip-record-vx2hj1nv/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/6z/00b0rbb54rd_rcgh5nfw09w40000gn/T/pip-install-8takmx53/cytoolz/
Your Environment
- Operating System: MacOS 10.13.5
- Python Version Used: Python 3.7.0a1
- spaCy Version Used: v2.0.11
- Environment Information: PyCharm 2018.1.4
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (4 by maintainers)
Top Results From Across the Web
Install spaCy · spaCy Usage Documentation
spaCy is a free open-source library for Natural Language Processing in Python. It features NER, POS tagging, dependency parsing, word vectors and more....
Read more >macos sierra - Issue with install Spacy - Stack Overflow
The best way to download Spacy and work with it is to download it manually and link it. Below command is used to...
Read more >Install and use spacy models - ProjectPro
Step 1 - Install Spacy using pip command !pip install spacy ; Step 2 - Download best matching version of specific model for...
Read more >spacy 2.2.4 - PyPI
Install spaCy · Operating system: macOS / OS X · Linux · Windows (Cygwin, MinGW, Visual Studio) · Python version: Python 2.7, 3.5+...
Read more >How to make spaCy work on a non-networked computer (or ...
We're installing the spaCy natural language processing (NLP) software. ... Older versions of the Mac OS come with Python 2.7 pre-installed, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry this took a bit longer – we also pushed an update to
preshed
, had to fix a few other dependency issues, and then decided to include a bunch of stuff that was originally only going to be shipped withv2.1.x
. So spaCyv2.0.12
turned into a much bigger release.But I just tested installing spaCy on Python 3.7 and it all seems to work fine now 🎉
Same issue for me. It looks like to me that the guilty package is cytools 0.8.2 which does not work with python 3.7 (
Collecting cytoolz<0.9,>=0.8 (from thinc<6.11.0,>=6.10.1->spacy)
).Updating it to 0.9.0.1 would solve it.
Command “/private/var/folders/nc/5sdcykxd01x_pkjyh0dkvgpr0000gp/T/tmp.EbYC1dls/venv/bin/python3 -u -c “import setuptools, tokenize;file=‘/private/var/folders/nc/5sdcykxd01x_pkjyh0dkvgpr0000gp/T/pip-install-rrtksggk/preshed/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /private/var/folders/nc/5sdcykxd01x_pkjyh0dkvgpr0000gp/T/pip-record-wmngyecd/install-record.txt --single-version-externally-managed --compile --install-headers /private/var/folders/nc/5sdcykxd01x_pkjyh0dkvgpr0000gp/T/tmp.EbYC1dls/venv/include/site/python3.7/preshed” failed with error code 1 in /private/var/folders/nc/5sdcykxd01x_pkjyh0dkvgpr0000gp/T/pip-install-rrtksggk/preshed/