{"id":5251,"date":"2016-11-18T02:50:39","date_gmt":"2016-11-18T02:50:39","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=5251"},"modified":"2016-11-18T02:50:39","modified_gmt":"2016-11-18T02:50:39","slug":"tensorflow-python-setup-digitalocean","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/tensorflow-python-setup-digitalocean\/","title":{"rendered":"Tensorflow Python Setup on DigitalOcean"},"content":{"rendered":"<p>The following steps will install TensorFlow<sup><a href=\"#footnote_0_5251\" id=\"identifier_0_5251\" class=\"footnote-link footnote-identifier-link\" title=\"https:\/\/www.tensorflow.org\/versions\/r0.11\/get_started\/os_setup.html#pip-installation\">1<\/a><\/sup> on a fresh <a href=\"https:\/\/m.do.co\/c\/47d5d7293b54\">Digital Ocean<\/a> virtual machine running Ubuntu.<\/p>\n<p>This is straight from the installation guide, but summarized for this environment (correct python version \/ no GPU).<\/p>\n<pre lang=\"bash\">\napt-get update && apt-get upgrade\napt-get install python-pip python-dev python-virtualenv\n\npip install --upgrade pip\n\nexport TF_BINARY_URL=https:\/\/storage.googleapis.com\/tensorflow\/linux\/cpu\/tensorflow-0.11.0-cp27-none-linux_x86_64.whl\n\npip install --upgrade $TF_BINARY_URL\n<\/pre>\n<p>Then to test it:<\/p>\n<pre lang=\"python\">\nimport tensorflow as tf\nhello = tf.constant('Hello, TensorFlow!')\nsess = tf.Session()\nprint(sess.run(hello))\n\na = tf.constant(10)\nb = tf.constant(32)\nprint(sess.run(a + b))\n<\/pre>\n<ol class=\"footnotes\"><li id=\"footnote_0_5251\" class=\"footnote\">https:\/\/www.tensorflow.org\/versions\/r0.11\/get_started\/os_setup.html#pip-installation<span class=\"footnote-back-link-wrapper\"> [<a href=\"#identifier_0_5251\" class=\"footnote-link footnote-back-link\">&#8617;<\/a>]<\/span><\/li><\/ol>","protected":false},"excerpt":{"rendered":"<p>Steps to set TensorFlow up on an Ubuntu VM on Digital Ocean<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[42,165,352,540,559],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5251"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=5251"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5251\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=5251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=5251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=5251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}