查看tensorflow版本及安装路径
import tensorflow as tf #打印tensorflow版本 print("tensorflow version:"+tf.__version__) #打印tensorflow安装路径 for str in tf.__path__: print("tensorflow path:"+str)
import tensorflow as tf #打印tensorflow版本 print("tensorflow version:"+tf.__version__) #打印tensorflow安装路径 for str in tf.__path__: print("tensorflow path:"+str)