ModuleNotFoundError: No module named ‘tensorflow‘

明明已经安装了tensorflow-gpu 2.5版本,import tensorflow as tf 还是报错。。。

在确定CUDA、cuDNN版本都对的情况下发生上述错误,原因可能是python和tensorflow-gpu的版本不匹配

conda create -n tensorflow-gpu(环境名)

conda install tensorflow-gpu(指定版本==2.6.0)
 

猜你喜欢

转载自blog.csdn.net/qq_40108803/article/details/129163453