Spacy 3 fails on Mac M1 - zsh: illegal hardware instruction #9397
-
How to reproduce the behaviourI have just upgraded to spacy 3.1.3, using "pip install -U spacy" Your Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It sounds like you've gotten package installs that are mixed between native (arm64) and emulation (x86_64) versions, probably due to mixing pip and conda. It's probably easiest to keep things straight if you install spacy solely through conda: If you're not already, I'd recommend using the mac arm64 miniforge conda installer: https://github.com/conda-forge/miniforge#miniforge3. There are mac arm64 packages for spacy and all its dependencies through the To make things a lot faster on an M1, also install the new python -m pip install thinc-apple-ops |
Beta Was this translation helpful? Give feedback.
It sounds like you've gotten package installs that are mixed between native (arm64) and emulation (x86_64) versions, probably due to mixing pip and conda.
It's probably easiest to keep things straight if you install spacy solely through conda:
conda install -c conda-forge spacy
. It might be easiest to start in a new conda venv to be sure you're getting a clean installation of everything.If you're not already, I'd recommend using the mac arm64 miniforge conda installer: https://github.com/conda-forge/miniforge#miniforge3. There are mac arm64 packages for spacy and all its dependencies through the
conda-forge
channel.To make things a lot faster on an M1, also install the new
thinc-apple-ops
…