Python PIL has no attribute 'Image' | 易学教程
https://www.e-learn.cn/topic/70819430.11.2019 · It won't magically import anything by itself. When you do from PIL import Image it looks in the PIL package and finds the file Image.py and imports that. When you do PIL.Image you are actually doing an attribute lookup on the PIL module (which is just an empty stub unless you explicitly import stuff).