Install Tensorflow Python 3.7 Windows



  1. Install Tensorflow Python 3.7 Windows 10
  2. Install Tensorflow Python 3.7 Windows 7
  3. Install Tensorflow Anaconda Windows Python 3.7
  4. Install Tensorflow Windows Python 3.7
  5. Install Tensorflow Python 3.7 Windows Xp
Install tensorflow python 3.7 windows 10

Locate Anaconda. The first step you need to do is to locate the path of Anaconda. You will create a. Python version: 3.7. Winamd64.whl which the page says is for windows using python 3.7 should work. Newenv python=3.6 pip install tensorflow. Downloading and Installation: Tensorflow can be downloaded from its official Website tensorflow.org and can be installed with the help of following steps: Step 1: Click on Install on top navigation bar of Tensorflow website. Step 2: Before proceeding we need to get python environment. Choose pip in the left side and go to python section and install python environment to work on it. TensorFlow installation with GPU Support on Python 3.7 in Windows. As we are installing TensorFlow version 2.1.0, we will require CUDA 10.1. Make sure long paths are enabled on Windows. Install the 64-bit Python 3 release for Windows (select pip as an optional feature). Requirements for the Raspbian operating system: sudo apt update sudo apt install python3-dev python3-pip python3-venv sudo apt install libatlas-base-dev # required for numpy.

In this post, I will show you how to install TensorFlow 2 on Windows 10. TensorFlow2 is a free software library used for machine learning applications. It comes integrated with Keras, a neural-network library written in Python. If you want to work with neural networks and deep learning, TensorFlow 2 should be your software of choice because of its popularity both in academia and in industry. Let’s get started!

  • Windows 10

Install TensorFlow 2

Here are the official instructions for downloading TensorFlow 2, but I will walk you through the process step-by-step.

Open an Anaconda command prompt terminal.

Type the command below to create a virtual environment named tf_2 with the latest version of Python installed. A virtual environment is like an independent Python workspace which has its own set of libraries and Python version installed. For example, you might have a project that needs to run using an older version of Python, like Python 2.7. You might have another project that requires Python 3.7. You can create separate virtual environments for these projects.

Install Tensorflow Python 3.7 Windows 10

Press y and then ENTER.

Wait for the software to download.

Once the download is finished, activate the virtual environment using this command:

Check which version of Python you have installed on your system. I have Python 3.8.0.

Choose a TensorFlow package. I’ll install TensorFlow CPU. Let’s type the following command:

You might see this error:

3.7

ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)

ERROR: No matching distribution found for tensorflow

If you do, you need to downgrade your version of Python. TensorFlow is not yet compatible with your newest version of Python.

Press y and then ENTER.

Tensorflow

Check which version of Python you have installed on your system. I have Python 3.6.9 now.

Install Tensorflow Python 3.7 Windows 7

Now install TensorFlow 2.

Tensorflow

Wait for Tensorflow CPU to finish installing. Once it is finished installing, verify the installation by typing:

Here is the output:

You should see your TensorFlow version in the output.

You might see this message:

“I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2”

Don’t worry, TensorFlow is working just fine. To get rid of that message, you can set the environment variables inside the virtual environment. Type the following command:

Install Tensorflow Anaconda Windows Python 3.7

Now run this command:

Voila! Message gone.

Create a Basic Neural Network Using TensorFlow 2

To really see what TensorFlow 2 can do, let’s do the following:

  • Build a neural network that classifies images of clothing.
  • Train this neural network.
  • And, finally, evaluate the accuracy of the model.

We are going to roughly follow the TensorFlow beginner tutorial.

First, install the Matplotlib library.

I’m now going to open up a text editor and type a Python program. I will save it to my D drive as fashion_mnist.py. Here is the code:

Within your virtual environment in the Anaconda terminal, navigate to where you saved your code. I will type.

Then:

Type dir to see if the Python (.py) file is in that directory.

Now run the code:

You should see this graphic pop up.

In the terminal window, press CTRL+C on your keyboard to stop the code from running.

Let’s add to our code. Open up the Python file again in the text editor and type the following code. If you are new to neural networks, don’t worry what everything means at this stage.

Run the code:

When you see the plot of the clothes appear, just close that window so that the neural network build and run.

Here is the output.

The accuracy of classifying the clothing items was 87.5%. Pretty cool huh! Congratulations! You’ve built and run your first neural network on TensorFlow 2.

To deactivate the virtual environment, type:

Install Tensorflow Windows Python 3.7

Then to exit the terminal, type:

Install Tensorflow Python 3.7 Windows

Install Tensorflow Python 3.7 Windows Xp

At this stage, I encourage you to go through the TensorFlow tutorials to get more practice using this really powerful tool.





Comments are closed.