ModuleNotFoundError: No module named ‘tensorflow‘

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)
 

Guess you like

Origin blog.csdn.net/qq_40108803/article/details/129163453