简体   繁体   English

从版本 8.3.2-> 9.1.1 升级枕头

[英]Upgrading pillow from version 8.3.2-> 9.1.1

I am upgrading pillow from version 8.3.2 to 9.1.1.我正在将枕头从版本 8.3.2 升级到 9.1.1。 A little confused by the release notes.对发行说明有点困惑。 version 9.0.0 and above are built against libjpeg-turbo. 9.0.0 及以上版本是针对 libjpeg-turbo 构建的。 Does it mean we must have libjpeg-turbo installed on our servers as well?这是否意味着我们也必须在我们的服务器上安装 libjpeg-turbo? or is it fine to stick with libjpeg-dev package we have.或者坚持使用我们拥有的 libjpeg-dev package 是否可以。

The binary wheels for Pillow are statically compiled against the basic format libraries, as evident from compiled for libjpeg-turbo 2.1.3 being present in the slimmest Python container: Pillow 的二进制轮子是针对基本格式库静态编译的,从最薄的 Python 容器中存在compiled for libjpeg-turbo 2.1.3看出:

~ $ docker run -it python:3.10-slim-bullseye bash
root@4fb371115880:/# pip install -q Pillow
root@4fb371115880:/# python -c 'from PIL.features import pilinfo; pilinfo()'
--------------------------------------------------------------------
Pillow 9.1.1
Python 3.10.5 (main, Jun  7 2022, 18:49:47) [GCC 10.2.1 20210110]
--------------------------------------------------------------------
Python modules loaded from /usr/local/lib/python3.10/site-packages/PIL
Binary modules loaded from /usr/local/lib/python3.10/site-packages/PIL
--------------------------------------------------------------------
--- PIL CORE support ok, compiled for 9.1.1
*** TKINTER support not installed
--- FREETYPE2 support ok, loaded 2.12.1
--- LITTLECMS2 support ok, loaded 2.13.1
--- WEBP support ok, loaded 1.2.2
--- WEBP Transparency support ok
--- WEBPMUX support ok
--- WEBP Animation support ok
--- JPEG support ok, compiled for libjpeg-turbo 2.1.3
--- OPENJPEG (JPEG2000) support ok, loaded 2.5.0
--- ZLIB (PNG/ZIP) support ok, loaded 1.2.11
--- LIBTIFF support ok, loaded 4.3.0
*** RAQM (Bidirectional Text) support not installed
*** LIBIMAGEQUANT (Quantization method) support not installed
--- XCB (X protocol) support ok

In other words, no, you don't need to install libjpeg-turbo (or libjpeg , even) separately if you don't compile Pillow yourself.换句话说,不,如果您不自己编译 Pillow,则不需要单独安装libjpeg-turbo (或libjpeg ,甚至)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM