Open In App

Install Tensorflow on Linux

In this article, we are going to see how to install TensorFlow in Linux. It is a completely open-source library for numerical computation using data flow graphs.

System requirement:

Step-wise installation:

Step 1: Create a virtual environment for the python venv model.



sudo apt install python3-venv python3-dev

Step 2: Create a python 3 virtual environment.



mkdir tensor
cd tensor/
python3 -m venv <virtual_environment_name>

Step 3: Now check the pip version in a virtual environment.

pip --version

Here our pip is 9, so we need to upgrade the pip using –upgrade:

pip install --upgrade pip

Step 4: Install TensorFlow using pip:

pip install --upgrade tensorflow

Step 5: Check it is installed properly or not.

import tensorflow as tf
print(tf.__version__);

Article Tags :