Thanks to visit codestin.com
Credit goes to github.com

Skip to content

New Pillow version (7.0.0) breaks torchvision (ImportError: cannot import name 'PILLOW_VERSION' from 'PIL') #1712

@parsing-science

Description

@parsing-science

Hi, it looks like Pillow released version 7.0.0 so I can no longer import torchvision without getting this error: ImportError: cannot import name 'PILLOW_VERSION' from 'PIL'

Pinning to Pillow 6.2.1 fixes the issue.

I see that you fixed this for a future torchvision release (#1501). Do you know when this will be released? If it will be awhile, could the version of Pillow be pinned to be less than 7.0.0 in the meantime?

Thanks.

Versions:
torch: 1.3.1
torchvision: 0.4.2
Pillow: 7.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions