i was training AI in my pc using tensorflow with CPU due i have a amd GPU, well i bought a Nvidia RTX 5060 TI 16GB and i couldn't make it work.

First, i made a new environment with anaconda, installed tensorflow, matplolib, opencv, notebook, numpy normally, also installed cudatoolkit and cundnn (acording to copilot this necessary in order to training with the GPU), well the thing is when i started the training it was slow, and in the task manager i could see that the GPU wasn't being used, it was using CPU as before.

I ran the command nvidia-smi command and the driver shows the GPU, with in the environment tensor flow doesn't do it, i keep trying to make it work and i ended that tensorflow last version wasn't supported in windows so i followed some instructions to use the ubuntu console and WSL, and still didn't work.

My hardware is: Ryzen 7 5700x, 32GB RAM 3200, RTX 5060 TI 16GB, NVME Gen3 1TB, Windows 11 23h2, Python 3.10

Some errors i get:


python -m pip install --no-cache-dir tensorflow-cuda2.15.0 ERROR: Could not find a version that satisfies the requirement tensorflow-cuda2.15.0 (from versions: none) ERROR: No matching distribution found for tensorflow-cuda==2.15.



TF 2.15.0 Built with CUDA: False GPUs: []

TF: 2.15.0 Built with CUDA: False Physical GPUs: [] TF build info: { "is_cuda_build": false, "is_rocm_build": false, "is_tensorrt_build": false, "msvcp_dll_names": "msvcp140.dll,msvcp140_1.dll" }

This is the code i used to try to install and setup the enviroment:

conda create -n tf_gpu_py310 python=3.10 -y
conda activate tf_gpu_py310
conda install -c conda-forge cudatoolkit=12.3 cudnn=8.9 -y
python -m pip install --upgrade pip setuptools wheel
python -m pip install --no-cache-dir tensorflow==2.15.0
python -c "import tensorflow as tf; print('TF',tf.__version__); print('Built with CUDA:', tf.test.is_built_with_cuda()); print('GPUs:', tf.config.list_physical_devices('GPU'))"

The main problem is that the environment works but with the CPU no the GPU, i am here asking for help because i tried with AI chats like copilot and grok and they couldn't help me, also saw several yt videos and nothing, please help boys x.x