Obviously, tensorflow-gpu version 2.5 has been installed, but import tensorflow as tf still reports an error. . .
The above error occurs when the versions of CUDA and cuDNN are confirmed to be correct. The reason may be that the versions of python and tensorflow-gpu do not match.
conda create -n tensorflow-gpu (environment name)
conda install tensorflow-gpu (specify version==2.6.0)