Skip to content

Spacy on m1 pro chip doesn't work #10683

Discussion options

You must be logged in to vote

It sounds like your python environment has accidentally ended up with a mix of x86_64 and arm64 packages. (Universal binaries can make it too easy to get things mixed up, although off the top of my head I would have expected the homebrew python and the packages in in /opt/homebrew/lib/python3.9/site-packages/ to be arm64-only.)

Double-check the platform with this command, it should be arm64:

/opt/homebrew/bin/python3.9 -c "import platform; print(platform.machine())"

Try starting from scratch in a new venv without using any previously cached wheels:

/opt/homebrew/bin/python3.9 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip setuptools wheel
python -m pip install 'spacy…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@vkm-ushur
Comment options

@adrianeboyd
Comment options

Answer selected by adrianeboyd
Comment options

You must be logged in to vote
1 reply
@adrianeboyd
Comment options

Comment options

You must be logged in to vote
3 replies
@adrianeboyd
Comment options

@jacobquintero
Comment options

@jacobquintero
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Installation issues plat / m1 Apple M1 architecture support
4 participants
Converted from issue

This discussion was converted from issue #10680 on April 21, 2022 06:21.