Getting tensorflow to work with GPU

Hi so i have NVIDIA GTX1070Ti and i want to use it for tensor calculations. But for 2 weeks i have been struggling with finding dependencies and making it work. Currently i get the following error:
I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.

NVIDIA-SMI 535.86.05 Driver Version: 535.86.05 CUDA Version: 12.2

nvcc:
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2023 NVIDIA Corporation Built on Tue_Jun_13_19:16:58_PDT_2023 Cuda compilation tools, release 12.2, V12.2.91 Build cuda_12.2.r12.2/compiler.32965470_0
If anyone has any GOOD tutorial or some steps to follow where to get what, much appreciated

Please do not create duplicate threads.