Spacy: MacOS install error

Created on 12 May 2020  路  5Comments  路  Source: explosion/spaCy

How to reproduce the problem

This is in a clean venv:

python3 -m venv ~/.venvs/ranker
source ~/.venvs/ranker/bin/activate

development.in


pip-compile --upgrade --build-isolation -v --output-file requirements/development.txt requirements/development.in

It hangs here for quite some time (5-10 minutes), then errors:

  spacy==2.1.0 not in cache, need to check index
  Collecting spacy==2.1.0
    Using cached spacy-2.1.0.tar.gz (27.7 MB)
    Installing build dependencies ... error
    ERROR: Command errored out with exit status 1:
...

The full stacktrace is massive, so here are some things that I found that might be of interest:

error: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.7" but "10.9" during configure
ERROR: Command errored out with exit status 1: /Users/bbstilson/.venvs/ranker/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/lk/gbj_jgcj6d3bmwmhbkqkv1_w0000gq/T/pip-install-u4ghax0f/blis/setup.py'"'"'; __file__='"'"'/private/var/folders/lk/gbj_jgcj6d3bmwmhbkqkv1_w0000gq/T/pip-install-u4ghax0f/blis/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/lk/gbj_jgcj6d3bmwmhbkqkv1_w0000gq/T/pip-record-cwl6l8m5/install-record.txt --single-version-externally-managed --prefix /private/var/folders/lk/gbj_jgcj6d3bmwmhbkqkv1_w0000gq/T/pip-build-env-9ygcsd8n/overlay --compile --install-headers /Users/bbstilson/.venvs/ranker/include/site/python3.8/blis Check the logs for full command output.
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /Users/bbstilson/.venvs/ranker/bin/python3 /Users/bbstilson/.venvs/ranker/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/lk/gbj_jgcj6d3bmwmhbkqkv1_w0000gq/T/pip-build-env-9ygcsd8n/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'wheel>0.32.0.<0.33.0' Cython 'cymem>=2.0.2,<2.1.0' 'preshed>=2.0.1,<2.1.0' 'murmurhash>=0.28.0,<1.1.0' thinc==7.0.0.dev6 Check the logs for full command output.

Your Environment

  • Operating System: MacOS 10.15.4 (19E287)
  • Python Version Used: 3.8
  • spaCy Version Used: 2.1.0
  • Environment Information: N/A
install osx

Most helpful comment

You can also run this before installation:

export -u MACOSX_DEPLOYMENT_TARGET=10.15

(or 11.0 or 10.14 or whatever version you are on)

All 5 comments

I get this error too, which I think is caused due to the python version.
My system configuration is MacOS 10.14.6, Python 3.8, Spacy 2.1.9. However, I could get it to work in a virtual environment with Python 3.6.2.

You can also run this before installation:

export -u MACOSX_DEPLOYMENT_TARGET=10.15

(or 11.0 or 10.14 or whatever version you are on)

Have these tips been useful to you, @bbstilson? Have you been able to install spaCy properly? (I don't use Mac myself I'm afraid)

@svlandeg It seems like what others users recommended worked for a few people, so I think we can close this ticket.

Ok, will do, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TropComplique picture TropComplique  路  3Comments

nadachaabani1 picture nadachaabani1  路  3Comments

smartinsightsfromdata picture smartinsightsfromdata  路  3Comments

prashant334 picture prashant334  路  3Comments

ahalterman picture ahalterman  路  3Comments