How to find which version of TensorFlow is installed in my system?

前端 未结 16 2048
轮回少年
轮回少年 2020-11-30 17:00

I need to find which version of TensorFlow I have installed. I\'m using Ubuntu 16.04 Long Term Support.

16条回答
  •  悲&欢浪女
    2020-11-30 17:41

    I installed the Tensorflow 0.12rc from source, and the following command gives me the version info:

    python -c 'import tensorflow as tf; print(tf.__version__)'  # for Python 2
    python3 -c 'import tensorflow as tf; print(tf.__version__)'  # for Python 3
    

    The following figure shows the output:

提交回复
热议问题