git.exe clone "https://github.com/tensorflow/tensorflow" "C:\tensorflow"
1. Go to c:\tensorflow\tensorflow\contrib\cmake
2. Create a build folder
3. cd build and create and run this file:
go.bat
- Code: Select all Expand view
- call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
cmake .. -A x64 -DCMAKE_BUILD_TYPE=Release -DSWIG_EXECUTABLE=c:\software\swigwin-3.0.12\swig.exe -DPYTHON_EXECUTABLE=c:\Users\Administrator\appdata\Local\Programs\Python\Python36\python.exe -DPYTHON_LIBRARIES=c:\Users\Administrator\appdata\Local\Programs\Python\Python36\libs\python36.lib -DNUMPY_INCLUDE_DIR=c:\software\numpy-1.13.1\numpy\core\include\numpy
Important: Visual Studio Community 2015 is required. It does not work with Visual Studio Community 2017