title: Python command exited with code 9009
body: <p>I am attempting to build a c++ solution in visual studio.</p>
  
  <p>The error is as follows:</p>
  
  <p><code>error MSB3073: The command "python D:\...[file path]...\Source\VS2013\svnrev.py
  :VCEnd" exited with code 9009.</code></p>
  
  <p>I have done some searching and the code 9009 apparently means a bad path. One possible reason for this is that the path contains spaces. On the visual studio error list there is a line break in between 'synrev.py' and ':VCEnd', so this may be the problem.</p>
  
  <p>The error refers to a file called Microsoft.CppCommon.targets, the line supposedly being:</p>
  
  <pre><code>`&lt;Exec Command="%(PreBuildEvent.Command)$(_BuildSuffix)" Condition="'%(PreBuildEvent.Command)' != ''"/&gt;`
  </code></pre>
  
  <p>According to previous questions on SO this problem can be fixed by adding quotation marks around the relevant spot but I'm not sure where this is (it seems like there are quotation marks around everything already!)</p>
  
  <p>Another possible suggested cause is that there is no path linking to the necessary command. Checking the visual studio output gives:</p>
  
  <p><code>9&gt;  'python' is not recognized as an internal or external command,
  9&gt;  operable program or batch file.</code></p>
  
  <p>The solution I am trying to build was obtained complete from the developers so it is possible that this is some sort of additional required file that they would just assume that I have installed. I have tried to search further but terms like 'Python command' are too generic and don't seem to be yielding helpful information. </p>
  
  <p>I'm guessing this is some commonly used extension or add-on for running python in visual studio but I am not very experienced here - python is something I have never used and I haven't used visual studio before this project. </p>
  
  <p>Thanks in advance for any suggestions.</p>