Tensorflow for Windows

Rahul Kumar
BotSupply
Published in
3 min readNov 10, 2016

--

Steps to install Tensorflow on Windows 10 machine.

Step 1: Get Windows 10 with the Anniversary Update.

Step 2: To install Bash shell on your Windows 10 PC, follow link below:

Once the bash is ready.

Step 3: Open cmd, type bash.

Step 4: You are into the Linux version, now install the python dependencies using pip or apt-get.

I have compiles some of the dep below:

#############################################!/bin/bash
#
# This script will hopefully save you a lot of time setting up Linux
# to be ready to run Python service.
#
# Tested using the following environment:
# — Running vanilla Ubuntu Trusty 14.04 LTS.
#
#
@author Rahul Kumar
#
# Excessive commenting has been included below for clarity :-)
# Save this script to /home/yourUserName, chmod +x setupPython.sh, + run
# using ./setupPython.sh
################################################################################
# Install utils.
################################################################################
echo -e “\e[36m***Installing utilities*** \e[0m”
sudo apt-get update
sudo apt-get install unzip git-all pkg-config zip g++ zlib1g-dev
sudo apt-get install build-essential gfortran libatlas-base-dev
sudo apt-get install libamd2.3.1 libblas3gf libc6 libgcc1 libgfortran3 liblapack3gf libumfpack5.4.0 libstdc++6 build-essential libatlas-sse2-dev
################################################################################
# Fetch Swig and Python deps.
################################################################################
echo -e “\e[36m***Installing python deps*** \e[0m”
sudo apt-get install swig
sudo apt-get install build-essential python-dev python-pip checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
sudo apt-get install gfortran libatlas-base-dev
################################################################################
# We need Numpy, scipy, matplotlib etc
################################################################################
echo -e “\e[36m***Installing Numpy*** \e[0m”
sudo apt-get install python-numpy
sudo pip install numpy — upgrade
sudo pip install scipy
sudo pip install matplotlib
sudo pip install -U scikit-learn
sudo pip install pandas
sudo pip install — upgrade gensim
sudo pip install wikipedia
################################################################################
# Finally Tensorflow
################################################################################
echo -e “\e[36m***Installing Tesnorflow*** \e[0m”export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whlsudo pip install — upgrade $TF_BINARY_URL############################################

I tried installing Tensorflow using pip and Anaconda. Both of them are working fine in my case.

Training Tensorflow model on Windows 10 and monitoring progress using Tensorboard.

The best part is, no VM or Docker is required. Google claims to officially provide windows support in coming updates but this approach will he helpful until its officially available.

And windows bash will be using all your cores, so 100% CPU allocation is possible using Windows bash.

4 core CPU utilization while training process.

Enjoy……

Thanks,
Rahul Kumar
www.hellorahulk.com

We’re a team of bot creatives and AI scientists with one common goal:

blowing business objectives out of the water with bots and cognitive solutions

Did you like the article? Click ❤ to recommend it to other Medium readers!

--

--

Rahul Kumar
BotSupply

I’m a DeepLearning Enthusiast, an Independent Researcher and Technology Explorer.