用TensorFlow使用VGG预训练模型的时候出现以下错误:
ImportError: Could not import PIL.Image. The use of load_img
requires PIL.
解决方法:安装pillow,
使用conda/pip install pillow命令安装依旧报错,之后卸载上一步安装的pillow,在anaconda里安装,重启,在运行,不再报错。
ImportError: Could not import PIL.Image. The use of `load_img` requires PIL.
最新推荐文章于 2021-11-10 23:50:15 发布