The CUDA version of nvcc --version is 11.2, and the nvidia-smi version is 12.6

I need to use CUDA11.2 with tensorflow-gpu but it cannot match the driver version. What should I do?my OS:windows11 GPU:RTX3050