If you are wondering how to install TensorFlow effectively, don’t worry. We have covered using this straightforward yet practical approach to install TensorFlow on Windows machines. This article will not only provide an installation walkthrough, still, it will also include prerequisites and theory to get started on what TensorFlow is and the minimum requirements to run TensorFlow on Windows machines. By the end of this article, you will be able to install TensorFlow, python, virtual environment and much more. So Let’s start.
Tensorflow is a Free and Open source library for Artificial Intelligence and Machine Learning. With the help of TensorFlow, it becomes very convenient to make machine learning models trained on enormous datasets for classification/prediction, etc, tasks.
These are the minimum requirements you must have to install TensorFlow on your system:
Want to enrich your career and become a professional in TensorFlow? Then enroll in TensorFlow Online Training. This hands-on course will help you to achieve excellence in this domain. |
Let’s get started by installing Python first. If you have Python installed, you can directly skip to Step 10.
Step 1: Visit the official Python website via https://www.python.org/downloads/
Step 2: Click on download python, whichever is the latest version. If you need any specific version, then do hit https://www.python.org/downloads/windows/
Step 3: Save the .exe file on the local machine as per your requirement.
Step 4: Open the .exe file.
[ Learn Complete TensorFlow Tutorial For Beginners ]
Step 5: Click on Add python.exe to PATH as this option helps us to automatically set the python.exe path to environment variables, so it helps to use Python from anywhere in your system. If you don’t select this option, you must manually add the path, which is a complex process.
Step 6: Installation in Progress.
Step 7: Installation is successful. Just close this window.
Step 8: To verify the Python installation, type the Windows+r key so it will open the dialog box. Just enter cmd and hit ok. Or you can directly search for the command prompt in Windows search.
Step 9: Once the command prompt is opened, just type in the command python –version or py –version and hit enter. If you see the version, you successfully installed Python on your system.
The virtual environment is a Python environment in which all the installed libraries and scripts are limited to that environment only. It doesn’t interfere with the system’s libraries. As a result, no conflicts are raised due to version mismatch and all.
Therefore, it is advised to do it in a virtual environment when running the Python project.
Setting Up the Virtual Environment:
Step 10: Let’s Download the Library first, then create and activate the environment. To install the virtual environment, type pip install virtualenv, and to create the environment, type virtualenv environment_name followed by change the directory to cd environment_name/scripts and then enter and type activate so as you can see in the last, before the root directly our environment, i.e. (tensorflow) is running successfully.
Step 11: Let’s download TensorFlow. To download TensorFlow, type the command pip install TensorFlow.
Step 12: As TensorFlow got successfully installed, now let’s verify it. To verify the TensorFlow, open the Python interpreter by typing python. After the successful opening of the interpreter, type the code import tensorflow as tf if you see no error after importing TensorFlow. Bingo, it got installed successfully, and to check its version type in print(tf.__version__), you will be able to see the version of TensorFlow that got installed.
To close the Python interpreter, type ctrl + z, hit enter, then deactivate to deactivate the virtual environment.
Learn TensorFlow Interview Questions and Answers that help you grab high-paying jobs |
You need to install Python on your system to install TensorFlow. After installing Python, open the command prompt, run the command pip install tensorflow, and verify your installation in the Python environment.
Yes, Tensorflow is compatible with 64-bit systems. You can install it through Python’s pip package manager. There are official packages available for Windows, macOS, and Ubuntu.
You need to have a Python environment with a 3.5 version or later. CUDA Toolkit: CUDA 9.0 is also required to run TensorFlow. Libraries like LIMP or SHAP are also required to perform model explanations.
If pic packages fail to be released, users won’t receive any updates for bug fixes or new features. Collaborations may be hindered, and security issues may arise, leading to trust issues.
In this tutorial, we saw how to install TensorFlow on a Windows machine. Initially, we started with Python installation, then the setting up of the virtual environment, followed by installing TensorFlow.It was the easiest way to install TensorFlow on a Windows machine.
Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:
Name | Dates | |
---|---|---|
TensorFlow Training | Nov 19 to Dec 04 | View Details |
TensorFlow Training | Nov 23 to Dec 08 | View Details |
TensorFlow Training | Nov 26 to Dec 11 | View Details |
TensorFlow Training | Nov 30 to Dec 15 | View Details |
Viswanath is a passionate content writer of Mindmajix. He has expertise in Trending Domains like Data Science, Artificial Intelligence, Machine Learning, Blockchain, etc. His articles help the learners to get insights about the Domain. You can reach him on Linkedin