While importing, Python (Anaconda) gives the following error:
ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' I tried removing pillow and then conda install but the error persists.
Pillow 7.0.0 removed PILLOW_VERSION, you should use __version__ in your own code instead.
Edit (2020-01-16):
If using torchvision, this has been fixed in v0.5.0. To fix:
torchvision>=0.5.0 Old info (2020-01-09):
If using torchvision, there is a release planned this week (week 2, 2020) to fix it:
The options are:
pip install -U git+https://github.com/pytorch/vision)pip install "pillow<7")If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With