How to install TensorFlow on Windows using PIP with pictures | Python | PIP





In this article, we are showing how to install TensorFlow on Windows operating system using Python and PIP  with step by step process.

What is TensorFlow?

TensorFlow is an open-source machine learning framework developed by Google for programming with different functionalities and required to perform
different types of tasks like image recognition, text classification, and etc.

Prerequisites:

Once Python, PIP installation is completed then verify versions using below commands:

  • To verify the Python version:
Python -version
  • To verify the Pip version:
pip --version

Tensorflow Installation on Windows:

Step 1: Install the Pip virtual environment in the Command prompt.

pip3 install -U pip virtualenv

Step 2: Here we are creating the directory for Python virtual environment.

.\venv





Step 3: In this step, we are creating a Python virtual environment for package installation from the system using the below command:

virtualenv --system-site-packages -p python3 ./venv

Step 4: To activate the Python virtual environment using below one.

.\venv\Scripts\activate


Step 5: Install TensorFlow in the Virtual environment using the below combination of PIP and TensorFlow command.

pip install -upgrade tensorflow

The above command takes more time because of more packages, libraries installation for TensorFlow. Once it is done then it will go with the below step.

Step 6: To verify the TensorFlow, first open the Python prompt then enter the below command:

>>> import tensorflow

Congratulations! TensorFlow installation is successfully completed on your Windows operating system.




Summary: The above steps for TensorFlow installation on Windows operating system using Python and PIP for Python developers. In case if it is showing errors, then upgrade the Python and PIPafter that will start the installations from the origin. Still getting errors to comment on it, we will help with these installations and processes for Windows 8 or Windows 10 operating system users.