What are the steps to install TensorFlow?
You can install TensorFlow by following these steps:
- Make sure that Python and pip are installed in your system. TensorFlow supports Python versions 3.5-3.8.
- Install TensorFlow using pip. You can install TensorFlow in the command line using the following command:
pip install tensorflow
To install the GPU version of TensorFlow, you can use the following command:
pip install tensorflow-gpu
- Verify the installation. Once the installation is complete, you can use the following code in Python to verify if TensorFlow is properly installed:
import tensorflow as tf
print(tf.__version__)
If all the steps above have been completed successfully, congratulations, TensorFlow has been successfully installed on your system.