导入import pil.image 出现错误的原因及解决办法 解决办法:执行以下代码: pip uninstall PIL pip uninstall Pillow pip install Pillow