AttributeError: module 'PIL' has no attribute 'open'

做数据增强读图的时候,会出现AttributeError: module 'PIL' has no attribute 'open'情况,如下图:

在程序中加了一句,就能读图了。

import Image

希望对你有帮助。