PyTorch is dropping support for Python 3.9 soon: https://github.com/pytorch/pytorch/issues/161167 We should do the same. The minimum supported version will be 3.10.