Could not load dynamic library 'cudart64_110.dll'

Hello, I am trying to use my GPU for training, so I downloaded CUDA and cudnn, I copied all the files from the cudnn file to CUDA, and I added the bin, libnvvp, and extras\cupti\lib64 to paths in the environment variable
the virtual environment I am trying to run model_builder_tf2_test.py, and it gives me a warning like this dlerror: cudart64_110.dll not found , I checked the file it is in the NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin folder but it is not seeing for some reason
I need to work with GPU so please if the answer to this I am open to it

@osatk_samer,

Welcome to the Tensorflow Forum!

Could you please elaborate on how you installed the Tensorflow package? Please also include the output of the following code:

python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
nvidia-smi

Thank you!

I download the TensorFlow throw Powershell in visual studio 2019, The output when I apply the command line in the PowerShell is

“C:\Users\osama\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\tensorflow_init_.py”, line 37, in
from tensorflow.python.tools import module_util as _module_util
ModuleNotFoundError: No module named ‘tensorflow.python’

@osatk_samer,

It seems Tensorflow library is not installed properly on your machine.

Following are the the possible reasons in your case:

1. You need to install the MSVC 2019 redistributable
2. Your CPU does not support AVX2 instructions
3. Your CPU/Python is on 32 bits

Please check and let us know ?

Thank you!

i tried to use another IDE , but now I am using VS code , I checked to also the AVX my system is supporting AVX, and then I changed the Python to 64-bit the command up there is start to give me like this

(tfod) PS C:\Users*****\source\repos\TFODCourse> python3 -c “import tensorflow as tf; print(tf.config.list_physical_devices(‘GPU’))”
2023-06-08 13:59:50.881271: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘cudart64_110.dll’; dlerror: cudart64_110.dll not found
2023-06-08 13:59:50.881698: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2023-06-08 13:59:55.827809: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘cudart64_110.dll’; dlerror: cudart64_110.dll not found
2023-06-08 13:59:55.828280: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘cublas64_11.dll’; dlerror: cublas64_11.dll not found
2023-06-08 13:59:55.828822: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘cublasLt64_11.dll’; dlerror: cublasLt64_11.dll not found
2023-06-08 13:59:55.829396: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘cufft64_10.dll’; dlerror: cufft64_10.dll not found
2023-06-08 13:59:55.829918: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘curand64_10.dll’; dlerror: curand64_10.dll not found
2023-06-08 13:59:55.830454: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘cusolver64_11.dll’; dlerror: cusolver64_11.dll not found
2023-06-08 13:59:55.830956: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘cusparse64_11.dll’; dlerror: cusparse64_11.dll not found
2023-06-08 13:59:55.831428: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘cudnn64_8.dll’; dlerror: cudnn64_8.dll not found
2023-06-08 13:59:55.831567: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1934] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at Install TensorFlow with pip for how to download and setup the required libraries for your platform.
Skipping registering GPU devices…