#python错误 AttributeError

问题遇到的现象和发生背景 ]

运行深度学习模型

问题相关代码,请勿粘贴截图

from Dreamfields import helpers

运行结果及报错内容

AttributeError Traceback (most recent call last)

AttributeError Traceback (most recent call last)
in
1 from dreamfields import augment

2 from dreamfields import helpers
3 from dreamfields import log
4 from dreamfields import mipnerf
5 from dreamfields import scene

12 frames
/usr/local/lib/python3.7/dist-packages/PIL/Image.py in getattr(name)
59 _raise_version_warning()
60 return version

61 raise AttributeError("module '{}' has no attribute '{}'".format(name, name))
62
63

AttributeError: module 'PIL.Image' has no attribute 'Transform'

我的解答思路和尝试过的方法

据说可能是版本问题

我想要达到的结果

求解答

有可能新版本把这个方法改了,如果,你是在书上的源码或者GitHub的源码,最好,和它们所要求的环境一致。

这篇文章:python的AttributeError错误 也许能够解决你的问题,你可以看下