title: Environment variables set up in Windows for pyspark
body: <p>I have Spark installed in my laptop. And I am able to execute <code>spark-shell</code> command and open the scala shell as shown below:</p>
  <pre class="lang-sh prettyprint-override"><code>C:\Spark1_6\spark-1.6.0-bin-hadoop2.6\bin&gt;spark-shell
  scala&gt;
  </code></pre>
  <p>But when I am trying to execute <code>pyspark</code> command:</p>
  <pre class="lang-sh prettyprint-override"><code>C:\Spark1_6\spark-1.6.0-bin-hadoop2.6\bin&gt;pyspark
  </code></pre>
  <p>I am getting the below error message:</p>
  <blockquote>
  <p>'python' is not recognized as an internal or external command</p>
  </blockquote>
  <p>I did set up the environment User 'Path' variable manually.
  By appending with</p>
  <blockquote>
  <p>&quot;;C:\Python27&quot;</p>
  </blockquote>
  <p>I rebooted the laptop and still get the same error.
  Can anyone please help me how to fix this ? Am I not correctly updating the environment variable?</p>
  <p>Versions: Spark: 1.6.2 Windows: 8.1</p>