Skip to content

Instantly share code, notes, and snippets.

@adrianseeley
Last active September 8, 2017 17:42
Show Gist options
  • Save adrianseeley/07e2a721d9f0628731188b880f3b77e7 to your computer and use it in GitHub Desktop.
Save adrianseeley/07e2a721d9f0628731188b880f3b77e7 to your computer and use it in GitHub Desktop.
TensorFlow CPU EC2 Popup Guide
# udpate yum
sudo yum update
# install git
sudo yum install git
# install python 3
sudo yum install python35
# install pip 3
sudo yum install python35-pip
# upgrade pip
sudo pip-3.5 install --upgrade pip
# copy pip to allow sudo
sudo cp /usr/local/bin/pip3 /usr/sbin/
# install tensorflow
sudo pip3 install --upgrade tensorflow
# tensorflow will complain that you didnt build from source, thats fine we arent after speed here just CPU basics
# shutup warnings with an env-var
export TF_CPP_MIN_LOG_LEVEL=2
# test tensorflow, open a repl
pytonn3
# try the following
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
# download files
wget ZIPURL
unzip ZIPNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment