For CUDA 10.2.89 you would need a driver >=440.33 as given in this table 4.
I thought Python2.7 support was dropped in PyTorch 1.5. Are you sure you are using the deprecated Python version? If so, I would highly recommend to use 3.7 or 3.8. 
Also, you could create a new virtual environment (e.g. with conda) and install the binaries there to keep your base environment in its current state.