Hi,
I had an issue on RTX2060 where cuda was not available.
I reinstalled it and worked fine. Mine was dependency issue with tensorflow as tensorflow-gpu runs on cuda11.
Please make sure once that you have installed cuda correctly and also check with tensorflow-gpu if cuda is running fine.
Hope it helps.
Thanks