from PIL import Image 显示没有PIL模块
原因:PIL只支持python2.x,在python3.x中是Pillow包,但调用仍是PIL
解决方法:
安装Pillow包,剩下和PIL用法一样
posted on 2022-05-01 21:11 Toriyung 阅读(22) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 Toriyung Powered by .NET 8.0 on Kubernetes