已解决ERROR: No matching distribution found for PIL

近来,在开发一个支持多格式图片上传的接口,出现导包问题

报错信息:

ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)
ERROR: No matching distribution found for PIL
直接安装  pip install PIL出现以下错误:

解决方法:

PIL导包是用的from PIL import Image,安装的时候并不是这个库名,而正确的包名是Pillow

安装完成即可解决问题。

 

 

你可能感兴趣的:(python,开发语言,flask)