Backto Python Index PIL 已经停更好多年了,只是还没有官宣 dead 而已。升级替代者就是 Pillow. 老代码中看到 PIL的,就直接安装 Pillow 。 API 看 官方文档