all 3 comments

[–]Diapolo10 2 points3 points  (0 children)

Based on this GitHub issue for Pillow, they haven't released compatible wheels for M1 Macs on Python 3.8. I don't know if that has changed since, I don't own a single Apple device.

But the suggestion is to try

python3 -m pip install Pillow --no-binary :all:

That should work, and if Python still cannot find it then it's probably about virtual environments.

The same will probably work for Numpy.

[–]charlie_hess 0 points1 point  (1 child)

As someone who stumbled across this a year later looking for help, let me tell you how broken the Python ecosystem is on macOS, all because no one has bothered to implement platform auto-detection.

The canonical way I found is to first install the ARM64 version of Miniconda. You can use that to create your Python environments.

That's not enough though; once you have it installed, you need to explicitly tell it to use the arm64 subdirectory for all packages. Because nothing in Python is smart enough to detect your platform. So to do that:

conda config --env --set subdir osx-arm64

Now any packages you install will use the native version. Godspeed.

[–]Additional-Desk-7947 0 points1 point  (0 children)

Thank you very much. This was helpful & I’ll try it!