Mac M1 Mach-o, but wrong architecture #9561
-
Hey all, I'm trying to install & use spacy on an M1 macbook air. I've installed what I need to with pip (to the best of my knowledge) but keep getting the same error when trying to run "$ python3 -m spacy download en_core_web_sm." Can anyone guide me in the right direction? I'll admit I'm not experienced with OSX at all, and may have a lot of questions/need step-by-step help. Terminal reads:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It sounds like you have somehow mixed up the architecture of libraries you have installed, or something is weird with their Rosetta configuration. Maybe look at this thread from January for a fix, or try uninstalling and resintalling |
Beta Was this translation helpful? Give feedback.
-
As an update, I think our pypi wheel releases were part of the problem here. There was a bug in our release process that led to macos x86_64 wheels for python 3.10 being named We've replaced the incorrect Edited to add: you may need delete the |
Beta Was this translation helpful? Give feedback.
As an update, I think our pypi wheel releases were part of the problem here. There was a bug in our release process that led to macos x86_64 wheels for python 3.10 being named
universal2
instead ofx86_64
.pip
on an M1 would happily install theuniversal2
wheel but then it could only run correctly witharch -x86_64 python
and would be incompatible with any installedarm64
wheels.We've replaced the incorrect
universal2
wheels withx86_64
wheels for macos python 3.10 on pypi, so now when you install spacy and its dependencies it should build everything from source forarm64
in a compatible way.Edited to add: you may need delete the
universal2
wheels from your pip cache or add--no-cache-dir
…