解决方法
1:打开anaconda ,
2:激活虚拟环境–activate cpu(cpu为我的虚拟环境名字)
3:在所在环境的终端中输入
pip install pillow -i https://pypi.tuna.tsinghua.edu.cn/simple/ 就可以成功安装啦
参考:ImportError: Could not import PIL.Image. The use of load_img
requires PIL. 错误解决办法
解决方法
1:打开anaconda ,
2:激活虚拟环境–activate cpu(cpu为我的虚拟环境名字)
3:在所在环境的终端中输入
pip install pillow -i https://pypi.tuna.tsinghua.edu.cn/simple/ 就可以成功安装啦
参考:ImportError: Could not import PIL.Image. The use of load_img
requires PIL. 错误解决办法