I have an M1 processor from Apple, which is a new ARM64 architecture, and the binaries provided for many data science Python packages will not run on it, and compiling them fails in most cases.
Questions such as How to install SciPy on Apple Silicon (ARM / M1) or numpy build fail in M1 Big sur 11.1 offer many different answers, some of which work and most don't. However, even for those that manage to make the modules compile, I don't understand how I can make pip
install my locally compiled packages instead of fetching them (and failing) from pypy.
How can I install numpy
, scipy
, numexpr
and others as a dependency on a computer with an M1 processor?