PIL 全称:Pillow

在使用PIL4.2.1版本读取jpeg文件时,报cannot identify image file,去github源查找原因:https://github.com/python-pillow/Pillow/issues/2628 ,感觉坑比较大,所以回避了这个版本

重新卸载掉Pillow 

sudo pip uninstall Pillow

 

重新下载,由于使用官方的镜像太慢,也规避掉并指定3.3.1版本,采用国内豆瓣的源:

pip install Pillow=3.3.1 -i https://pypi.douban.com/simple

这样问题解决.

 

相关文章:

  • 2021-06-20
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-10-28
  • 2021-09-29
猜你喜欢
  • 2022-12-23
  • 2021-10-20
  • 2021-11-17
  • 2021-04-24
  • 2021-10-23
  • 2022-01-11
  • 2021-06-17
相关资源
相似解决方案