The World

scribble

Ralph YY's Blog

06 Feb 2017
AWS Ubuntu Install TensorFlow

Steps to install TensorFlow to AWS ubuntu node, some tips

AWS Part

  1. Go to AWS https://aws.amazon.com
  2. Create the free Ubuntu node, I use “Ubuntu Server 16.04 LTS (HVM), SSD Volume Type”
  3. Security setting, open 8888, 80, 22, ICMP ports

Python Part

  1. Must run source update in Ubuntu
$ sudo apt-get update
  1. AWS Ubuntu defaul install python3 and python-minimal which is 2.7, we can manually install python2.7
$ sudo apt-get install python2.7
  1. Install pip + Virtualenv(virtual machine include docker)
$ sudo apt-get install python-pip python-dev python-virtualenv
  1. Install all the python Lib(very big)
$ sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose python-sklearn

TensorFlow Part

  1. Get TensorFlow package by virtualenv
$ virtualenv --system-site-packages ~/tensorflow
  1. Active TensorFlow
$ source ~/tensorflow/bin/activate  # If using bash
  1. Startup TensorFlow docker
$ sudo docker run -p 8888:8888 --name tensorflow-udacity -it gcr.io/tensorflow/udacity-assignments:0.6.0

if exist

$ sudo docker start -ai tensorflow-udacity

Visit Your TensorFlow

  1. visit http://{your AWS IP}:8888

Setup environment always annoying, Enjoy!


Til next time,
at 00:00

scribble

comments powered by Disqus