Update Pillow version constraint to support Python 3.14
Author: ben-bernankeCreated Jan 30, 2026Updated Aug 17, 2026
Problem
The current Pillow constraint pillow = "^10.2.0" in pyproject.toml prevents installation on Python 3.14.
Python 3.14 only has pre-built wheels for Pillow 12.x, and Pillow 10.x fails to build from source on Windows due to C++ compatibility issues.
This blocks downstream packages like marker-pdf from supporting Python 3.14 (see marker issue #942).
Proposed Solution
Relax the Pillow upper bound constraint:
# Current
pillow = "^10.2.0" # >=10.2.0, <11.0.0
# Proposed (option A - recommended)
pillow = ">=10.2.0"
# Proposed (option B - conservative)
pillow = ">=10.2.0,<13.0.0"Environment
- Python 3.14
- Windows 11
- Pillow 12.x (only available wheel for Python 3.14)
Thank you!
Source: datalab-to/surya