Build TensorFlow on Windows

** * Windows builds are officially available from 0.12! ** **

Release 0.12.0/Major Features and Improvements

Recently (probably from around 2016/10), TensorFlow can be built on Windows. The procedure for building using CMake is published below (however, it seems that Migrate to bazel). Masu).

tensorflow/tensorflow/contrib/cmake/README.md

It's written fairly carefully, so basically you can build it, generate a Python wrapper, and use Python x Tensorflow natively on Windows. However, it takes a lot of time to build, so if you want to use it quickly, the one I built is listed below, so please use it. We have confirmed that the code in Introduction works.

icoxfog417/tensorflow-windows-build

In addition, build on Windows is still handled as an alpha version as of November 2016, and it seems that some functions are not supported. Therefore, if you want to use it on Windows for normal use, you should install it using bash on Windows (although there is an advantage that you can use GPU if you can build Windows natively).

Build environment

Below is a description of the environment I built. If you want to try it yourself, please refer to it.

With miniconda / Anaconda, you can easily create an environment for building.

conda create -n tensorflow-win swig numpy zlib

Actually, cmake is also included in conda install, but the version of cmake entered here is 3.3.1, and a build error occurred in this case. Therefore, for cmake, I dropped the latest version of 3.6 from here and used it. The build script looks like this:

cmake .. -A x64 -DCMAKE_BUILD_TYPE=Release ^
-DSWIG_EXECUTABLE=<your_conda_env_path>\Library\bin\swig.exe ^
-DPYTHON_EXECUTABLE=<your_conda_env_path>\python.exe ^
-DPYTHON_LIBRARIES=<your_conda_env_path>\libs\python35.lib
More? -Dtensorflow_ENABLE_GPU=ON ^
More? -DCUDNN_HOME="<cudnn extraction directory>\cuda"

The following resources are required for building.

Please try TensorFlow life on Windows.

Recommended Posts

Build TensorFlow on Windows
Build XGBoost on Windows
Build python environment on windows
[Tensorflow] Tensorflow environment construction on Windows 10
Run Tensorflow natively supported on windows
Build and install OpenCV on Windows
Use Tensorflow 2.1.0 with Anaconda on Windows 10!
Python on Windows
[UE4] Build DedicatedServer on Windows and Linux
Python 2.7, 3.4, 3.5 extension module build environment on Windows
Try using Bash on Windows 10 2 (TensorFlow installation)
I built a TensorFlow environment on windows10
Install TensorFlow on Ubuntu
Simply build a Python 3 execution environment on Windows
Pylint on Windows Atom
Linux (WSL) on Windows
Build procedure for TensorFlow 2.4.0 (Windows10, CUDA11.1.1, cuDNN 8.0.5, Python 3.8.6)
Use pyvenv on Windows
Build procedure of TensorFlow 2.2.0-rc0 (CUDA10.2 + cuDNN7.6.5) --Windows10
Anaconda on Windows Terminal
Install Anaconda on Windows 10
python basic on windows ②
Install python on windows
Install pycuda on Windows10
Try FEniCS on Windows!
Install pygraphviz on Windows 10
Notes for using TensorFlow on Bash on Ubuntu on Windows
Use Ansible on Windows
build Python on Ubuntu
Try Poerty on Windows
Install Chainer 1.5.0 on Windows
Use QuTiP on Windows
Use pip on Windows
Installing TensorFlow on Windows Easy for Python beginners
OpneJDK8 build on CentOS7_x86_64
Steps to build PyTorch 1.5 for CUDA 10.2 on Windows
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Build a Python extension for E-Cell 4 on Windows 7 (64bit)
Building a TensorFlow environment that uses GPU on Windows 10
Build a GVim-based Python development environment on Windows 10 (1) Installation
Build a machine learning environment natively on Windows 10 (x64)
Set-enable Python virtualenv on Windows
Install watchdog on Windows + Python 3.3
Install Win-Kex (kali-linux) on Windows 10.
Install cvxpy on windows, Anaconda
Python + Kivy development on Windows
Prepare Chainer environment on Windows
F2py on Miniconda for Windows
Sphinx-autobuild (0.5.2) on Windows7, Python 3.5.1, Sphinx 1.3.5
Make Cython available on Windows.
Fastest Python installation on Windows
Operate ubuntu on VScode (windows10)
Run Tensorflow 2.x on Python 3.7
Install Chainer 1.6 (GPU) on Windows 7.
Set up Polyglot on Windows
Introducing TensorFlow on Ubuntu + Python 2.7
Linux on Windows -1-: debian introduction
I ran python on windows
Notes on installing Anaconda 3 on Windows
[Python] [Chainer] [Windows] Install Chainer on Windows
Use Python on Windows (PyCharm)