tensorfow c++ API compiling error

david ye Source

When I compiled tensorflow c++ API using msbuild, got the following error,

File "C:/projects/tensorflow-master1/tensorflow-master/tensorflow/tools/git/gen_git_source.py", line 156, in
          get_git_version
             str("--work-tree=" + git_base_path), "describe", "--long", "--tags"
           File "C:\Users\chuan\Anaconda3\lib\subprocess.py", line 336, in check_output
             **kwargs).stdout
           File "C:\Users\chuan\Anaconda3\lib\subprocess.py", line 403, in run
             with Popen(*popenargs, **kwargs) as process:
           File "C:\Users\chuan\Anaconda3\lib\subprocess.py", line 709, in __init__
             restore_signals, start_new_session)
           File "C:\Users\chuan\Anaconda3\lib\subprocess.py", line 997, in _execute_child
             startupinfo)
         FileNotFoundError: [WinError 2] The system cannot find the file specified
   213>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.e
       xe" exited with code 1. [C:\projects\tensorflow-master1\tensorflow-master\build\tf_core_framework.vcxproj]

anyone knows how to fix it?

c++apitensorflow

Answers

comments powered by Disqus