小编din*_*nam的帖子

AttributeError:模块'PIL.Image'没有属性'register_extensions'

我在google-colab上运行了fast.ai的lesson1.当我来到这条线

img = plt.imread(f'{PATH}valid/cats/{files[0]}')

plt.imshow(img);
Run Code Online (Sandbox Code Playgroud)

它没有显示图像.相反,我得到一个错误:

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

可能是什么导致了这个?

python deep-learning google-colaboratory

21
推荐指数
6
解决办法
1万
查看次数