I use the conda comment to install tensorflow:
conda create -n tf2.6 python=3.9
conda install tensorflow-gpu=2.6
The log tells me it was succesuflly installed.Then in python when I import tensorflow, it shows Could not load dynamic library 'libcudart.so.11.0'. From the log, I found it installed cudatoolkit and cudnn when installing tensorflow. In the directory ./tf2.6/lib, there exist libcudart.so
and libcudart.so.11.0
. why python cannot recognize it? Some one can give some suggestions. Thank you very much.
In my conda env, there was another version tf2.5. It can work perfectly but I forgot how to installed it since it is a long time when I installed it.