Python Forum

Full Version: Installing Tensorflow-GPU
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
By following the steps in the "How to install Tensorflow GPU on Windows" (

I am stuck on the “Step 10: Build Tensorflow using MSbuild”, using this "MSBuild /p:Configuration=Release /verbosity:detailed tf_python_build_pip_package.vcxproj" in the command prompt results in this:

Microsoft ® Build Engine version for .NET Framework
Copyright © Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: tf_python_build_pip_package.vcxproj

What is this problem and how to fix it please.
I am using a Dell Inspiron 15 7559 with Core i5-6300HQ and GTX960M. Python 3.7.0, NVIDIA CUDA driver 9.2 and Visual Studio Community 2017 are installed.
I have followed every steps in the page but I am stuck with this MSBuild part. Wall
TensorFlow does currently not support Python 3.7.
Use Python 3.6 for TensorFlow.
(Sep-29-2018, 07:28 AM)DeaD_EyE Wrote: [ -> ]TensorFlow does currently not support Python 3.7.
Use Python 3.6 for TensorFlow.

I have restarted the whole process and follow the steps in the "" page.
But this time I am stuck at the Step 9: Configure Tensorflow from source using CMake and this happened

c:\tensorflow\tensorflow\contrib\cmake\build>cmake -G "Visual Studio 14 2015 Win64" -T host=x64 -DCMAKE_BUILD_TYPE=Release -DSWIG_EXECUTABLE=c:/swigwin-3.0.12/swig.exe -Dtensorflow_ENABLE_GPU=ON -Dtensorflow_CUDA_VERSION=9.1 -Dtensorflow_CUDNN_VERSION=7 -Dtensorflow_WIN_CPU_SIMD_OPTIONS=/arch:AVX2 ..
CMake Error at tf_python.cmake:37 (message):
Cannot get Python include directory. Is distutils installed?
Call Stack (most recent call first):
CMakeLists.txt:422 (include)

-- Configuring incomplete, errors occurred!
See also "C:/tensorflow/tensorflow/contrib/cmake/build/CMakeFiles/CMakeOutput.log".
See also "C:/tensorflow/tensorflow/contrib/cmake/build/CMakeFiles/CMakeError.log".

Can you help me with this?