Skip to content

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

You can use the following code snippet to check which version of TensorFlow is installed in your system:

which version of TensorFlow is installed

python
import tensorflow as tf
print(tf.__version__)

<div class="alert alert-info flex not-prose"> Watch a course Python - The Practical Guide</div>

This will print the version of TensorFlow that is currently installed on your system. For example, if you are running version 2.4.1 of TensorFlow, the above code will output "2.4.1".

Dual-run preview — compare with live Symfony routes.