-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install Pillow on the Macbook Pro 13 M1 Silicon #5093
Unable to install Pillow on the Macbook Pro 13 M1 Silicon #5093
Comments
First off, any particular reason to use Pillow 7.2.0 on not 8.x? Python 3.9 support was officially added to Pillow in 8.0.0: https://pillow.readthedocs.io/en/stable/installation.html#python-support I think there's still some work going on in the packaging world to support Apple silicon, and so it's attempting to install and build from source. Please could you first try after updating pip and wheel? It's also possible to download one of the wheels from https://pypi.org/project/Pillow/8.0.1/#files and change one of the tags in the filename, and Or to build from source, you need to install some dependencies first:
|
Thank you for reaching back. I have also tried with pillow version 8.0.1 but the same issue is going on, unable to install Pillow. |
I have same question python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow on the Macbook Pro 13 M1 Silicon have the same question |
@jia611 Please can you try this? (Instructions based on scipy/scipy#13102 (comment))
$ python3 -m pip install packaging
$ python3 -c"from packaging import tags; print('\n'.join([str(t) for t in tags.sys_tags()]))" |head -5
cp38-cp38-macosx_11_0_x86_64
mv Pillow-8.0.1-cp38-cp38-macosx_10_10_x86_64.whl Pillow-8.0.1-cp38-cp38-macosx_11_0_x86_64.whl
Or scipy/scipy#13102 (comment):
|
python3 -m pip install Pillow-8.0.1-cp38-cp38-macosx_11_0_x86_64.whl is error ERROR: Pillow-8.0.1-cp38-cp38-macosx_11_0_x86_64.whl is not a supported wheel on this platform. |
@jia611 What output do you get for this? python3 -c"from packaging import tags; print('\n'.join([str(t) for t in tags.sys_tags()]))" |head -5 |
cp38-cp38-macosx_11_0_arm64 |
Then please try renaming it to match one of those, for example |
Perhaps an obvious answer to be had. If I download and change to Pillow-8.0.1-cp38-cp38-macosx_11_0_universal2.whl |
In your current directory. |
thank you |
Good to hear, thanks for testing! Now the question is what changes do we need to make for the next release to be pip installable on M1 from PyPI? Are changes needed at multibuild? I think pip+packaging (pypa/packaging#319) and wheel (pypa/wheel#390) are ready. |
The installation worked on my Macbook Pro 13 M1 but when I try to use it still has problems. I am trying to run the https://github.com/tensorflow/hub/blob/master/examples/colab/object_detection.ipynb notebook. I get the following error: |
@goleador how did you install Pillow? |
@radarhere I have the same problem as @goleador when i run python3 in arm arch,python3 main.py ,error log is:
and when i run arch -x86_64 python3 main.py , the service is successful. |
I installed using the directions on this thread. Basically, renaming the .whl file as described above. @radarhere |
In case this is helpful to anyone, here's a wheel I put together on my M1 - |
@radarhere Tried to install your wheel on my m1. |
@y4nng-dev were you using Python 3.9, or a different Python version? Could you provide the full command that you used to try and install the wheel? |
@radarhere I'm using Python 3.8.2 and here is the command I used : |
@y4nng-dev ah, yes - the wheel I attached was for Python 3.9. Here is a wheel for Python 3.8 - |
thank you |
actions/runner-images#1814 is in preview, and actions/runner#805 is also pending. |
Create a virtual environment using venv and then try to use pip to install. |
So in your case it must have built from source, and we don't have any matching prebuilt binary wheels. |
@jurihahn you can try downloading the wheel from #5093 (comment) and running |
i don't need quick and dirty solution. I can do my job on intel MacBook, but it don't work on Arm MacBook. I report it, because same thing work on intel Mac... I think it's bug on ARM? |
The difference between your two architectures would be that we provide a wheel for Python 3.8 for Intel, Pillow-8.1.0-cp39-cp39-macosx_10_10_x86_64.whl (over at PyPI). We have not yet uploaded any M1 wheels to PyPI (and there are not current plans to do so for Python 3.8, since it is not fully supported for Big Sur). If you would like to ignore the PyPI wheels to perform a better comparison, try |
on Intel its already installed, |
@jurihahn I'm saying that I don't believe this is purely an ARM bug. This is because we do not have a wheel ready to go for Python 3.8 on ARM on PyPI (the place where pip draws code from) like we do for Python 3.8 on Intel. My last comment was intended to demonstrate that to you - if you uninstall Pillow on your Intel machine and then run |
OK. If you don't use brew, then just install official Python 3.9 Package from https://www.python.org/downloads/ |
I ran into problems when trying to configure jpeglib as described in comment on M1 ##5093 (comment) by Lixun910 because of a missing C compiler.
should be: |
I tried to rename it to the above cases, for example |
@DeeEcho it is (in theory at least) worth noting that Python 3.9.1 is the first to support Big Sur.. |
Pillow 8.1.1 has just been released, including an M1 wheel for Python 3.9. |
Hey guys, is there any chance of making it work with python 2.7 on the M1 mac |
I doubt it, due to python support. Python v2.8 is the "earliest" version you'll find able to run in M1 native, and that's unofficial since Apple hasn't back ported the changes to the v2.8 repository (that's my understanding?). Especially the Tensorflow changes, etc. The latest versions of Python v3 are still ironing out some of the kinks. Please note, if you use Rosetta 2 support, PyMuPdf will work on the M1 without any special compilation, etc. |
There will never be a Python 2.8 https://www.python.org/dev/peps/pep-0404 Python 2 died on 1/1/2020. |
Yes, you are correct. I was thinking of Python 2.7.16 that comes by default with Big Sur.
- Benjamin
… On Mar 10, 2021, at 8:43 AM, Christian Clauss ***@***.***> wrote:
There will never be a Python 2.8 https://www.python.org/dev/peps/pep-0404 <https://www.python.org/dev/peps/pep-0404>
Python 2 died on 1/1/2020.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#5093 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAHPEZWSKX2NLYPTUFUFP3TTC5ZQLANCNFSM4U2SUX4Q>.
|
If it helps anyone on Apple Silicon
works ! |
Are you sure? |
yes, it worked |
for me doesn't work |
@Allan-Nava if you would like further assistance, please open a new issue with more detail. |
simply run: |
fixed? |
@Allan-Nava if you have a problem, please open a new issue with more detail |
Can this issue be locked to force the creation of new issues? |
Sure. |
What did you do?
I tried installing a pillow with the pipenv, I have a python version 3.9.1 installed and tried to install a pillow with that but facing this issue mentioned below.
What did you expect to happen?
I wanted to use pillow with django.
What actually happened?
Pillow installation causing error continuously, the error is mentioned below.
What are your OS, Python, and Pillow versions?
The text was updated successfully, but these errors were encountered: