diff --git a/setup.py b/setup.py index 5e69fa50f52..578e50a7e9b 100644 --- a/setup.py +++ b/setup.py @@ -111,7 +111,8 @@ def get_dist(pkgname): ] # Excluding 8.3.* because of https://github.com/pytorch/vision/issues/4934 - pillow_ver = " >= 5.3.0, !=8.3.*" + # TODO remove <11.3 bound and address corresponding deprecation warnings + pillow_ver = " >= 5.3.0, !=8.3.*, <11.3" pillow_req = "pillow-simd" if get_dist("pillow-simd") is not None else "pillow" requirements.append(pillow_req + pillow_ver)