[TensorFlow]インストールされているTensorFlowのバージョンを調べる

コマンドラインより、pipコマンドを使用して調べることができます。

バージョンを調べるコマンド

$ pip3 list

実行例

次の例では「TensorFlow」が「1.3.0」、「tensorboard」が「0.1.4」です。
$ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
astroid (1.4.9)
autopep8 (1.3.2)
bleach (1.5.0)
click (6.7)
colorama (0.3.7)
flake8 (3.2.1)
Flask (0.12.1)
html5lib (0.9999999)
isort (4.2.5)
itsdangerous (0.24)
Jinja2 (2.9.6)
lazy-object-proxy (1.2.2)
Markdown (2.6.9)
MarkupSafe (1.0)
mccabe (0.5.2)
numpy (1.13.1)
Pillow (3.4.2)
pip (9.0.1)
protobuf (3.4.0)
pycodestyle (2.3.1)
pyflakes (1.3.0)
pylint (1.6.5)
requests (2.12.3)
setuptools (36.2.7)
six (1.10.0)
tensorflow (1.3.0)
tensorflow-tensorboard (0.1.4)
Werkzeug (0.12.2)
wheel (0.29.0)
wrapt (1.10.10)

TensorFlowバージョン

バージョンアップ可能かを調べる

-oオプションを指定すると、バージョンアップ可能なパッケージの一覧が表示されます。
$ pip3 list -o

実行例

次の例では「tensorboard」が「0.1.4」から「0.1.5」へアップデートできることがわかります。
$ pip3 list -o
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
astroid (1.4.9) - Latest: 1.5.3 [wheel]
bleach (1.5.0) - Latest: 2.0.0 [wheel]
colorama (0.3.7) - Latest: 0.3.9 [wheel]
flake8 (3.2.1) - Latest: 3.4.1 [wheel]
Flask (0.12.1) - Latest: 0.12.2 [wheel]
html5lib (0.9999999) - Latest: 0.999999999 [wheel]
isort (4.2.5) - Latest: 4.2.15 [wheel]
lazy-object-proxy (1.2.2) - Latest: 1.3.1 [wheel]
mccabe (0.5.2) - Latest: 0.6.1 [wheel]
Pillow (3.4.2) - Latest: 4.2.1 [wheel]
pyflakes (1.3.0) - Latest: 1.6.0 [wheel]
pylint (1.6.5) - Latest: 1.7.2 [wheel]
requests (2.12.3) - Latest: 2.18.4 [wheel]
setuptools (36.2.7) - Latest: 36.4.0 [wheel]
tensorflow-tensorboard (0.1.4) - Latest: 0.1.5 [wheel]
wrapt (1.10.10) - Latest: 1.10.11 [sdist]
TensorFlowバージョン

検証環境

関連ページ