PIL support JPEG

来源:互联网 发布:java处理高并发的框架 编辑:程序博客网 时间:2024/05/14 09:19

使用Image模块出现如下错误

IOError: decoder jpeg not available


需要安装libjpeg-devel
yum install -y libjpeg-devel

重装PIL:
pip uninstall PIL
pip install PIL


安装PIL出现如下问题:

  Could not find any downloads that satisfy the requirement PIL
  Some externally hosted files were ignored as access to them may be unreliable (use --allow-external PIL to allow).
  No distributions at all found for PIL

解决方法:

pip install PIL --allow-external PIL --allow-unverified PIL

0 0
原创粉丝点击