Failed to initialize NVML: Driver/library version mismatch

OK, first step, can you perform a hard reboot on your machine?

sudo reboot

If that doesn’t work, see here: CUDA NVIDIA NVML Driver/Library version mismatch - update-initramfs -u not working - old kernel version - Technical Help - DeepTalk - Deep Learning Community