{"id":617,"date":"2015-04-28T15:28:10","date_gmt":"2015-04-28T21:28:10","guid":{"rendered":"http:\/\/www.gergltd.com\/home\/?p=617"},"modified":"2015-06-11T08:38:36","modified_gmt":"2015-06-11T14:38:36","slug":"installing-theano-in-windows-7-64-bit","status":"publish","type":"post","link":"https:\/\/www.gergltd.com\/home\/installing-theano-in-windows-7-64-bit\/","title":{"rendered":"Installing Theano in Windows 7 64-bit"},"content":{"rendered":"<p>My instructions for installing Theano 0.6 with<\/p>\n<ul>\n<li>Windows 7-64 bit<\/li>\n<li>Anaconda 2.1.0 (Python 2.7). \u00a0This tutorial only works with 2.1.0. \u00a0I tested it with 2.2.0 and it did not work. \u00a0I have no plans to fix this issue.<\/li>\n<li>CUDA 7.0<\/li>\n<\/ul>\n<p><strong>Steps<\/strong><\/p>\n<ol>\n<li>Download Anaconda 2.1.0 from <a href=\"http:\/\/gergltd.com\/downloads\/Anaconda-2.1.0-Windows-x86_64.exe\">here<\/a>.<\/li>\n<li>Install pip via command line using\u00a0&#8220;pip install <a class=\"external free\" href=\"https:\/\/pypi.python.org\/packages\/source\/T\/Theano\/Theano-0.6.0.zip#md5=0a2211b250c358809014adb945dd0ba7\" rel=\"nofollow\">https:\/\/pypi.python.org\/packages\/source\/T\/Theano\/Theano-0.6.0.zip#md5=0a2211b250c358809014adb945dd0ba7<\/a>&#8220;<\/li>\n<li>Create a .theanorc.txt file in your user area (C:\\Users\\username\\.theanorc.txt) with the\u00a0specified text listed below.<\/li>\n<li>Open Anaconda<\/li>\n<li>Import and test\/build theano by typeing <em>import theano<\/em> and then <em>theano.test()<\/em><\/li>\n<li>Sit back and relax while everything builds.<\/li>\n<\/ol>\n<p><strong>.theanorc.txt file contents<\/strong> (you must create at %USERDIR%\/.theanorc.txt, for me this is c:\\users\\username\\.theanorc.txt)<\/p>\n<pre>[global]\r\nopenmp=False\r\ndevice = gpu0\r\nfloatX = float32\r\n\r\n[blas] ldflags=\r\n<\/pre>\n<p><strong>Notes<\/strong><\/p>\n<p>If you get an error about &#8220;CVM,&#8221; you must delete the cache files that are in C:\\Users\\<i>MyUsername<\/i>\\AppData\\Local\\Theano. Once you delete everything, start python again and continue from there.<\/p>\n<p>If you have path issues when trying to import theano, try using the Visual Studio 64-bit command prompt if you have it. \u00a0It sets a bunch of paths for you and &#8220;just works&#8221; for me. \u00a0For reference,\u00a0the path I use is:<\/p>\n<pre>PATH=C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\BIN\\amd64;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Windows\\Microsoft.NET\\Framework64\\v3.5;C:\\Program Files (x86)\\Microsoft Visual\r\nStudio 10.0\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE;C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\Tools;C:\\Program Files (x86)\\HTML Help Workshop;C:\r\n\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\bin\\NETFX 4.0 Tools\\x64;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\bin\\x64;C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\bin;C:\\Program\r\n Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v7.0\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v7.0\\libnvvp;C:\\Python34\\Lib\\site-packages\\PyQt5;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Co\r\nmmon;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v6.5\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v6.5\\libnvvp;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS C\r\nlient\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel\r\n(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\MATL\r\nAB\\R2014a\\bin;C:\\Program Files\\TortoiseHg\\;C:\\Program Files (x86)\\Microsoft SQL Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\100\\D\r\nTS\\Binn\\;C:\\Users\\username\\AppData\\Local\\Continuum\\Anaconda;C:\\Users\\username\\AppData\\Local\\Continuum\\Anaconda\\Scripts\r\n\r\n<strong>Update June 11, 2015\r\n<\/strong>Added link to Ananconda download<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>My instructions for installing Theano 0.6 with Windows 7-64 bit Anaconda 2.1.0 (Python 2.7). \u00a0This tutorial only works with 2.1.0. \u00a0I tested it with 2.2.0 and it did not work. \u00a0I have no plans to fix this issue. CUDA 7.0 Steps Download Anaconda 2.1.0 from here. Install pip via command line using\u00a0&#8220;pip install https:\/\/pypi.python.org\/packages\/source\/T\/Theano\/Theano-0.6.0.zip#md5=0a2211b250c358809014adb945dd0ba7&#8220; Create [&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,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-617","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts\/617","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=617"}],"version-history":[{"count":5,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts\/617\/revisions"}],"predecessor-version":[{"id":630,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/posts\/617\/revisions\/630"}],"wp:attachment":[{"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/media?parent=617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/categories?post=617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gergltd.com\/home\/wp-json\/wp\/v2\/tags?post=617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}