import PIL //程序里引入
运行时报错:
ImportError: No module named PIL
在shell里运行 pip install image
pip install image //
本文介绍了一种在Python程序中遇到的常见问题:尝试导入PIL模块时出现ImportError异常。文章提供了详细的步骤来解决这个问题,包括使用pip安装Pillow库,因为PIL已不再维护,通常建议使用Pillow作为替代方案。
import PIL //程序里引入
运行时报错:
ImportError: No module named PIL
在shell里运行 pip install image
pip install image //

被折叠的 条评论
为什么被折叠?