ImportError: cannot import name ‘PILLOW_VERSION’ from ‘PIL’

有什么辙?没辙。。

pillow就是要用7.0.0,因为torchvision要用0.4.0,torchvision版本太高了还有别的问题,可是pillow版本又降不下来,conda uninstall pillow摆出一荣俱荣一损俱损的架势。。好吧。。

没辙,只好。。。

按下面这个吧,我觉得也只有这样了。

好消息是,有效~

转自http://itdarcy.wang/index.php/20200218/655

把functional.py中导入PILLOW_VERSION的部分给改了:

from PIL import Image, ImageOps, ImageEnhance
from PIL import __version__ as PILLOW_VERSION

谁叫你搞事情

你可能感兴趣的:(ImportError: cannot import name ‘PILLOW_VERSION’ from ‘PIL’)