我在使用网上的远古代码的时候遇到了该错误 解决方法 把import Image替换成from PIL import Image 错误原因为: Image已经被并入PIL库,所以需要从PIL中import即可。