Torch.cuda.is_available() returns False, nvidia-smi is working

Hi, may I ask how to upgrade the display driver? And why the display driver will hurts the pytorch?