Closed sopoforic closed 1 year ago
Can you explain why you closed this? Did I miss something in the documentation and do something wrong? I would expect this to compile without any optimizations if there are none available, or anyway to do something other than give a bad command line to gcc.
Currently, Pillow-SIMD can be compiled with SSE4 (default) or AVX2 support.
This means only x86 and x86-64 architectures are supported. Apple m1 is a different architecture, called ARM. Pillow-SIMD code is extreme platform-specific and there is no easy way to compile it under ARM. So this is not an issue, it is just not what you are looking for. Please, use standard Pillow instead of Pillow-SIMD.
Sure, that's what I did--I wrote it in conditionally in the requirements.txt depending on the architecture, because not all developers are using the same machines. I just expected that if pillow-simd was a "100% compatible drop-in replacement" then on architectures that don't support the optimizations, it would fall back to the same behavior as pillow. Perhaps this isn't practical.
What did you do?
I added
Pillow-SIMD==9.0.0.post1
to myrequirements.txt
, which is to be installed in a docker container runningpython:3.10.5-slim
.What did you expect to happen?
Pillow-simd should have been installed.
What actually happened?
On x86_64, this works correctly. But on apple silicon, it fails with:
NB:
wheel
is installed already, but it attempts to build anyway.What are your OS, Python and Pillow versions?
python:3.10.5-slim
)