Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about **How to find which version of TensorFlow is installed in my system** **in Python**. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

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

**How to find which version of TensorFlow is installed in my system?**Almost every normal package in python assigns the variable

`.__version__`

to the current version. So if you want to find the version of some package you can do the following**find which version of TensorFlow is installed in my system**Almost every normal package in python assigns the variable

`.__version__`

to the current version. So if you want to find the version of some package you can do the following

## Method 1

This depends on how you installed TensorFlow. I am going to use the same headings used by TensorFlow’s installation instructions to structure this answer.

## Pip installation

Run:

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

Note that `python`

is symlinked to `/usr/bin/python3`

in some Linux distributions, so use `python`

instead of `python3`

in these cases.

`pip list | grep tensorflow`

for Python 2 or `pip3 list | grep tensorflow`

for Python 3 will also show the version of Tensorflow installed.

## Virtualenv installation

Run:

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

`pip list | grep tensorflow`

will also show the version of Tensorflow installed.

For example, I have installed TensorFlow 0.9.0 in a `virtualenv`

for Python 3. So, I get:

$ python -c 'import tensorflow as tf; print(tf.__version__)' 0.9.0 $ pip list | grep tensorflow tensorflow (0.9.0)

## Method 2

Almost every normal package in python assigns the variable `.__version__`

to the current version. So if you want to find the version of some package you can do the following

import a a.__version__

For tensorflow it will be

import tensorflow as tf tf.version.VERSION

For old versions of tensorflow (below 0.10), use `tf.__version__`

**Summery**

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

**Also, Read**