how to check version of tensorflow in ubuntu code example Example: check tensorflow version import tensorflow as tf tf.__version__