查看已安装tensorflow版本

命令行输入python

python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

可以查看python版本。

然后输入

import tensorflow as tf
tf.__version__

就可以查看tf版本了:

python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.__version__
‘1.4.0‘
>>> tf.__path__ 
[‘/usr/local/lib/python2.7/dist-packages/tensorflow‘]
>>> 

 

文章来自:https://www.cnblogs.com/lixiaolun/p/9118828.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3