How do I find out the version of TensorFlow on my computer?

$ pip show tensorflow
Name: tensorflow
Version: 1.5.0
Summary: TensorFlow helps the tensors flow

$ source activate tensorflow
$ pip show tensorflow
Name: tensorflow
Version: 1.9.0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: [email protected]
License: Apache 2.0

import tensorflow as tf
tf.__version__

pip list | grep tensorflow

You can find the version of any installed library by replacing 'tensorflow' with the library name.

Tags:

Tensorflow