今天,在学习使用keras框架,在模型训练完成后,我原本想用从网上找到的图片才验证一下我模型的性能。可是在加载图片时出现了一个提示错误。
在用keras的 load_img()加载图片时出现importError: Could not import PIL.Image. The use of array_to_img requires PIL.Image
在网上找了解决方法后,发现这样的解决方法最多。
pip3 install pillow于是,开始尝试安装pillow,可是。。。。
再到文件夹中查询时,发现早就安装好了,,,,,,
最后,逼不得已,重启整个虚拟环境,再进jupyter ,
就成功了? 搞人心态【what ** !】



