It’s possible to install on regular arm64 brew python, you need to compile it yourself.
If numpy
is already installed (from wheels) you’ll need to uninstall it:
pip3 uninstall -y numpy pythran
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
Scipy needs pythran
(this should happen after installing numpy):
pip3 install pythran
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