MacOS install error
See original GitHub issueHow to reproduce the problem
This is in a clean venv:
python3 -m venv ~/.venvs/ranker
source ~/.venvs/ranker/bin/activate
development.in
nlpre
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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (3 by maintainers)
Top Results From Across the Web
If an error occurred while updating or installing macOS
If an error occurred while updating or installing macOS · Check your internet connection · Install in safe mode · Install after repairing...
Read more >How to Fix the "macOS Could Not Be Installed on Your ...
1. Restart Your Mac and Retry the Installation ... Sometimes, all you need to do to fix macOS errors is to restart your...
Read more >How to Fix macOS “Installation failed, An error occurred while ...
How To Fix The Installation Failed Error on macOS · Try Downloading The Update at Another Time · Reboot Your Mac · Make...
Read more >How to Fix 'macOS Could Not Be Installed on Your Computer ...
How to Fix the 'macOS Could Not Be Installed' Error · Restart and try the installation again. · Check the Date & Time...
Read more >Fix macOS “Installation failed, An error occurred while ...
1. Restart your Mac in Safe Boot mode (restart and immediately hold the Shift key until you see the login prompt.) 2. Applications...
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 FreeTop 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
Top GitHub Comments
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)
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.