python -c "import tensorflow as tf; print(tf.__version__)"
import tensorflow as tf
print(tf.__version__)
在tensorflow官方网站查看最新版本:可以在tensorflow官方网站上查看最新发布的tensorflow版本,网址为:https://www.tensorflow.org
在github上查看tensorflow的发布版本:可以在tensorflow的github仓库上查看最新发布的tensorflow版本,网址为:https://github.com/tensorflow/tensorflow/releases
使用pip查看tensorflow版本:在命令行窗口中输入以下命令可以查看已安装的tensorflow版本:
pip show tensorflow
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: tensorflow中的tensor是什么