title: VSCode: The term 'python' is not recognized...but py works
body: <p>I just installed python on VS Code and I can't run any python code using <code>python</code> command.</p>
  <h2>python command:</h2>
  <p>Running the code seems to run <code>python</code> command by default and it does not recognize it.</p>
  <p>When I right click and choose <code>Run Code</code> it complains:</p>
  <p><code>'python' is not recognized as an internal or external command, operable program or batch file</code></p>
  <p>Same goes for manually running <code>python main.py</code>.</p>
  <p>When I open an elevated PowerShell and run <code>python</code>, it complains:</p>
  <pre class="lang-none prettyprint-override"><code>python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program.
  Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  At line:1 char:1
  + python
  + ~~~~~~
      + CategoryInfo          : ObjectNotFound: (python:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  <h2>py command:</h2>
  <p>It doesn't try to use <code>py</code> command but it recognizes it. <strong>And when I manually call <code>py main.py</code>, it works</strong>.</p>
  <p>When I manually do <code>&gt;py main.py</code> it writes my <code>Goodbye, World!</code></p>
  <h2>Question:</h2>
  <p>How can I make it compile/run in VS Code simply by using the CodeRunner's right-click feature (<code>Run Code</code>)?</p>
  <hr />
  <p><strong>I already have both Python folder and its Scripts folder in PATH.</strong></p>
  <p>I'm using <code>VS Code 1.27.2</code> and I have installed <code>python 3.7.0</code> on my machine and have checked its installer checkbox for adding the environment variables automatically. (PATH is ok)</p>
  <p>I also installed : <code>ms-python.python</code> and <code>tht13.python</code> and <code>formulahendry.code-runner</code> extensions on the VS Code.</p>
  <hr />
  <p>This is my <code>main.py</code> code:</p>
  <pre><code>print(&quot;Goodbye, World!&quot;)
  </code></pre>