从tensorflow.python导入tf2 ImportError:无法从“tensorflow.python”(未知位置)导入名称“tf2”
发布于 2022-03-01 14:53:03
您不需要指定tf2,如果要使用TensorFlow 2,只需安装
pip install tensorflow安装最新版本的tensorflow。然后,要在python代码中使用它,只需编写
import tensorflowhttps://stackoverflow.com/questions/71307691
复制相似问题