scipy.misc is deprecated and has no attribute imread. imread 函数已被弃用(deprecated),不再可用。imread 通常用于读取图像文件,但在较新的 SciPy 版本中已被移除。 解决方法:my_image = scipy.misc.imread(img_path) 改成: my_image = Image.open(img_path)