{"id":717,"date":"2016-11-21T11:40:39","date_gmt":"2016-11-21T17:40:39","guid":{"rendered":"http:\/\/www.gergltd.com\/home\/?p=717"},"modified":"2016-11-21T11:45:05","modified_gmt":"2016-11-21T17:45:05","slug":"installing-tensorflow-in-windows-7-x64-for-python-3-5","status":"publish","type":"post","link":"https:\/\/www.gergltd.com\/home\/installing-tensorflow-in-windows-7-x64-for-python-3-5\/","title":{"rendered":"Installing Tensorflow in Windows 7 x64 for Python 3.5"},"content":{"rendered":"<p>Here are my instructions to install Tensorflow (tf) in Windows 7 x64 for Python 3.5. \u00a0I have verified these instructions work to get tf working with Keras. \u00a0e sure to update your keras.json file to use the tf backend if you already use theano. \u00a0You do not need to purchase visual studio to get this to work.<\/p>\n<p><strong>I. Prerequisites<\/strong><\/p>\n<ol>\n<li>Install Cuda 8.0. \u00a0Note, you must use the release version of 8.0 and NOT the release candidate.<\/li>\n<li>Install python35 to c:\\python35 (no need for anaconda)<\/li>\n<li>Download cudnn (record path)<\/li>\n<li>Download swig (record path)<\/li>\n<li>Install visual studio 2015 community edition with C++. \u00a0Had\u00a0to manually install c++ in visual studio 2015 community edition. went into control panel, programs and features, and did a modify<\/li>\n<li>Install git for windows<\/li>\n<\/ol>\n<p><strong>II. Getting the tf repository<\/strong><\/p>\n<ol>\n<li>git clone https:\/\/github.com\/tensorflow\/tensorflow.git<\/li>\n<li>cd tensorflow\\tensorflow\\contrib\\cmake<\/li>\n<li>mkdir build<\/li>\n<li>cd build<\/li>\n<\/ol>\n<p><strong>III. Begin the tf install<\/strong><\/p>\n<ol>\n<li>\u00a0&#8220;C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\vcvarsall.bat&#8221; (make sure you are using the amd64 version)<\/li>\n<li>cmake .. -A x64 -DCMAKE_BUILD_TYPE=Release -DSWIG_EXECUTABLE=d:\/swigwin-3.0.10\/swig.exe -DPYTHON_EXECUTABLE=c:\/python35\/python.exe -DPYTHON_LIBRARIES=C:\/Python35\/libspython35.lib -Dtensorflow_ENABLE_GPU=ON -DCUDNN_HOME=D:\/ASASINATR\/cudnn -Dtensorflow_ENABLE_GPU=ON<\/li>\n<li>MSBuild \/p:Configuration=Release tf_tutorials_example_trainer.vcxproj<\/li>\n<li>Release\\tf_tutorials_example_trainer.exe (this should work if everything built correctly)<\/li>\n<\/ol>\n<p><strong>IV. Make the python wheel<\/strong><\/p>\n<ol>\n<li>pip install travis pip setuptools wheel<\/li>\n<li>MSBuild \/p:Configuration=Release tf_python_build_pip_package.vcxproj<\/li>\n<li>pip install D:\\tensorflow\\tensorflow\\tensorflow\\contrib\\cmake\\build\\tf_python\\dist\\tensorflow-0.11.0rc2_cmake_experimental-py3-none-any.whl<\/li>\n<\/ol>\n<p>If everything was successful you should be able to modify your keras.json file, load keras in python, and begin using tf.<\/p>\n<p>&nbsp;<\/p>\n<p>Thanks to Derek Murray of Google for the help creating this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are my instructions to install Tensorflow (tf) in Windows 7 x64 for Python 3.5. \u00a0I have verified these instructions work to get tf working with Keras. \u00a0e sure to update your keras.json file to use the tf backend if you already use theano. \u00a0You do not need to purchase visual studio to get this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-717","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts\/717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/comments?post=717"}],"version-history":[{"count":4,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts\/717\/revisions"}],"predecessor-version":[{"id":721,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts\/717\/revisions\/721"}],"wp:attachment":[{"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/media?parent=717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/categories?post=717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/tags?post=717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}