【python】【深度学习】ImportError: cannot import name 'Transform' from 'PIL.Image'
from PIL import Image
from captcha.image import ImageCaptcha
我要导入生成验证码的库,导入失败了
原因如题
解决方案
pip uninstall Pillow
pip uninstall Pillow
captcha将从PIL导入了
我的WSL anaconda将旧的Pillow8.4.0卸载了,安装了Pillow11.1.0解决该问题
Linux内核:Ubuntu22.04
anaconda:4.12.0for linux
浙公网安备 33010602011771号