Open DSLituiev opened 2 years ago
The abovementioned installation was launched from R
clinspacy
package.
I now try to install / build it manually. Strangely, pip install blis
runs w/o errors, but pip install spacy
or pip install spacy --no-binary blis
returns errors:
BLIS_ARCH="arm64" pip install spacy==2.3
or
BLIS_ARCH="arm64" pip install spacy==2.3 --no-binary blis
No such file or directory: '.../blis/_src/make/darwin-arm64.jsonl'
Similarly with BLIS_ARCH="generic"
:
No such file or directory: .../blis/_src/make/darwin-generic.jsonl
If you want to use spacy v2, please try using 'spacy~=2.3.0'
instead, which will install the latest version of v2.3.x, which should have binary wheels for osx arm64 (and should also compile from source correctly).
blis
v0.7.x uses the generic
arch for M1/M2 and will be very slow. For spacy v3 you should install spacy with 'spacy[apple]'
to install thinc-apple-ops
, which uses apple's Accelerate library instead of blis
. There's no equivalent package for spacy v2, though.
There's no arm64
architecture for blis. You should be able to rely on the autodetection for newer releases, but you can see the supported architectures here: https://github.com/explosion/cython-blis/tree/v0.7.x/blis/_src/make . blis
v0.9.x supports firestorm
, but there are bugs in some kernels that are preventing us from using it generally for spacy yet.
I am trying to install / build
blis
on Mac M2 and running into such an issue: