Pillow 5.1 is broken on OS X
See original GitHub issueWhen installing torch and torchvision in a clean virtualenv with python3.6 and the corresponding pip on OS X
import torchvision
leads to
torch-venv/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so, 2): Symbol not found: _clock_gettime
torch-venv/lib/python3.6/site-packages/PIL/.dylibs/liblzma.5.dylib (which was built for Mac OS X 10.12)
Expected in: /usr/lib/libSystem.B.dylib
This is a known bug see Pillow Issue 3068
As a pytorch user it can be fixed by specifying the Pillow version in your requirements.txt
Pillow!=5.1.0
torch
torchvision
The setup.py should get updated with something like:
install_requires=['Pillow != 5.1.0 ; platform_system = "Darwin"']
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Why is pip installing Pillow for OS X 10.12, when I have OS X ...
This is a bug in the latest Pillow 5.1.0 release. It was caused by upgrading Xcode from version 8 to 9.2 for building...
Read more >Error installing 5.1.2 on macOS 10.14 - Plone Community
I've been using Unified Installer on MacOS Mojave. ... I managed to install pillow, but I'm still getting the same error message:
Read more >Pillow 2.5.3 - PyPI
+ Fixed potential crash in ImageFilter for small target images (reported by Zac Burns and Daniel Fetchinson). + Use BMP instead of JPEG...
Read more >How To Fix “App is Damaged Can't Be Opened” Error Message
App is Damaged Can't Be Opened” or "App is damaged and can't be opened. You should move it the the Trash." error messages...
Read more >Unreal Engine 5.1 Release Notes
To build the Rosetta version you need to change the target device to My Mac (Rosetta). Xcode Rosetta Option. Note that Marketplace plugins...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@dharmeshkakadia That’s a duplicate of https://github.com/pytorch/vision/issues/1712:
@vfdev-5 I can reproduce with the exact same commands you posted. Is there a suggestion on how to fix it? Happy to provide more debugging info if needed as well.