Last active
August 29, 2015 14:23
-
-
Save nova77/95c874267b126ed18693 to your computer and use it in GitHub Desktop.
Revisions
-
nova77 revised this gist
Jun 19, 2015 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -58,6 +58,10 @@ Just add this to the registry: [HKEY_LOCAL_MACHINE\SOFTWARE\ATT\Graphviz] "InstallPath"="C:\\Program Files (x86)\\Graphviz2.38" ### Pandoc You have to get the binary from [pandoc](https://github.com/jgm/pandoc/releases). # Upkeep ### Theano -
nova77 revised this gist
Jun 16, 2015 . No changes.There are no files selected for viewing
-
nova77 created this gist
Jun 16, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,70 @@ ### Base stuff First follow what's in here: http://pavel.surmenok.com/2014/05/31/installing-theano-with-gpu-on-windows-64-bit/ ### 64-bit bitching stuff First get the MS python tools. This is particularly useful when you have issues such as ``Unable to find vcvarsall.bat`` during compilation: http://www.microsoft.com/en-us/download/details.aspx?id=44266 Now, regarding the stuff about python and compilation, you should find the details here: http://ascend4.org/Setting_up_a_MinGW-w64_build_environment#Setup_Python_for_compilation_of_extensions In particular: svn co svn://svn.code.sf.net/p/mingw-w64/code/trunk/mingw-w64-tools/gendef -r5774 ~/gendef cd ~/gendef ./configure --prefix=/mingw make -j4 && make install cd gendef --help copy the file ``c:\windows\system32\python27.dll`` into the folder ``c:\Python27\Libs`` Then, in msys: cd /c/Python27/libs mv python27.lib old-python27.lib gendef python27.dll Edit python27.def and replace ``Py_InitModule4`` with ``Py_InitModule4_64`` then run: dlltool --dllname python27.dll --def python27.def --output-lib libpython27.a also, since nvcc seems pretty dumb (I know, I know..): cp libpython27.a python27.lib ### Pre-built packages Use them only for stuff that requires compiled code (eg. numpy). Generally it's the win_amd64 version. http://www.lfd.uci.edu/~gohlke/pythonlibs/ Example: pip install numpy-1.9.2+mkl-cp27-none-win_amd64.whl ### Graphviz If you have installed graphviz and pydot, theano might complain that it cannot find the executable. Just add this to the registry: [HKEY_LOCAL_MACHINE\SOFTWARE\ATT\Graphviz] "InstallPath"="C:\\Program Files (x86)\\Graphviz2.38" # Upkeep ### Theano Make sure you're always install the dependencies with the prebuilt packages above. Then run pip with: pip install theano --upgrade --no-deps http://deeplearning.net/tutorial/deeplearning.pdf