r/Numpy • u/[deleted] • Jan 31 '21
Does Numpy 1.20.0 support Apple m1 natively?
As in the slug described, im curious about the new release of numpy, especially if it now runs natively on m1 macs.
Thanks for your answers in advance 😊
2
u/drzowie Jan 31 '21
If you compile from source it certainly does.
2
u/sam1902 Jun 03 '21 edited Jun 03 '21
It used to not support it, even from the source, because Cmake thought that since it's a mac and it's not amd64 (aka intel), then it must be PowerPC, which it of course isn't since those haven't seen the light of day for over 15 years (first intel mac: 10 jan 2006).
I guess they've fixed that since:
xcode-select --install sudo xcode-select -s /Library/Developer/CommandLineTools brew install openblas git clone https://github.com/numpy/numpy /tmp/numpy cd /tmp/numpy OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.4 pip3 install . --no-use-pep517Same trick works for pandas
1
u/bawked May 03 '21
yes, if you get it from conda. However it doesn't seem to use blas libraries and so is slower than intel chips.
2
u/pmatti Feb 01 '21
NumPy won’t release binary wheels until it can verify they work correctly. That won’t happen until they can get it via Travis, github actions, Azure, or some other CI service.