It's possible to install on regular arm64 brew python, you need to compile it yourself.
First I had to compile numpy
, which requires cython
and pybind11
:
pip3 install cython pybind11
Then numpy
can be compiled:
pip3 install --no-binary :all: --no-use-pep517 numpy
Then we need to compile scipy itself, it depends on fortran and BLAS/LACK:
brew install openblas gfortran
Tell scipy
where it can find this library:
export OPENBLAS=/opt/homebrew/opt/openblas/lib/
Then finally compilescipy
:
pip3 install --no-binary :all: --no-use-pep517 scipy
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…