diff options
-rw-r--r-- | var/spack/repos/builtin/packages/py-torchvision/package.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-torchvision/package.py b/var/spack/repos/builtin/packages/py-torchvision/package.py index 0396e6683a..4c28e7a05e 100644 --- a/var/spack/repos/builtin/packages/py-torchvision/package.py +++ b/var/spack/repos/builtin/packages/py-torchvision/package.py @@ -31,7 +31,9 @@ class PyTorchvision(PythonPackage): depends_on('py-six', type=('build', 'run')) depends_on('py-torch@1.2.0:', when='@0.4.0:', type=('build', 'run')) depends_on('py-torch@1.1.0:', type=('build', 'run')) - depends_on('py-pillow@4.1.1:', type=('build', 'run')) # or py-pillow-simd + # https://github.com/pytorch/vision/issues/1712 + depends_on('py-pillow@4.1.1:6', when='@:0.4', type=('build', 'run')) # or py-pillow-simd + depends_on('py-pillow@4.1.1:', when='@0.5:', type=('build', 'run')) # or py-pillow-simd # Many of the datasets require additional dependencies to use. # These can be installed after the fact. |