$ nvidia-smi
Wed Feb 19 04:42:14 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.64 Driver Version: 430.64 CUDA Version: 10.1 | <- driver version
|-------------------------------+----------------------+----------------------+ is
insufficient for
Cuda compilation tools, release 10.2, V10.2.89 <---------------------------------- runtime version
Because CUDA 10.2 requires a 440.33.01 or newer driver, and your driver is 430.xx. Too old.
If you don’t need CUDA 10.2, the simplest solution is probably to install CUDA 10.1 without
installing any new driver, and just keep your 430.xx driver. Toolkit runfile and package manager
install types both have methods for installing the toolkit without the driver.