06 Feb 2017
AWS Ubuntu Install TensorFlow
Steps to install TensorFlow to AWS ubuntu node, some tips
AWS Part
- Go to AWS https://aws.amazon.com
- Create the free Ubuntu node, I use “Ubuntu Server 16.04 LTS (HVM), SSD Volume Type”
- Security setting, open 8888, 80, 22, ICMP ports
Python Part
- Must run source update in Ubuntu
$ sudo apt-get update
- AWS Ubuntu defaul install python3 and python-minimal which is 2.7, we can manually install python2.7
$ sudo apt-get install python2.7
- Install pip + Virtualenv(virtual machine include docker)
$ sudo apt-get install python-pip python-dev python-virtualenv
- 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
- Get TensorFlow package by virtualenv
$ virtualenv --system-site-packages ~/tensorflow
- Active TensorFlow
$ source ~/tensorflow/bin/activate # If using bash
- 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
- visit http://{your AWS IP}:8888
Setup environment always annoying, Enjoy!
Til next time,
at 00:00