title: Spark Python error "FileNotFoundError: [WinError 2] The system cannot find the file specified"
body: <p>I am new to Spark and Python. I have installed python 3.5.1 and Spark-1.6.0-bin-hadoop2.4 on windows.</p>
  
  <p>I am getting below error when I execute sc = SparkContext("local", "Simple App") from python shell..</p>
  
  <p>Can you please help?</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>from pyspark import SparkConf, SparkContext</p>
        
        <p>sc = SparkContext("local", "Simple App")</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>Traceback (most recent call last):</p>
  
  <p>File "", line 1, in </p>
  
  <pre><code>sc = SparkContext("local", "Simple App")
  </code></pre>
  
  <p>File "C:\spark-1.6.0-bin-hadoop2.4\python\pyspark\context.py", line 112, in <strong>init</strong></p>
  
  <pre><code>SparkContext._ensure_initialized(self, gateway=gateway)
  </code></pre>
  
  <p>File "C:\spark-1.6.0-bin-hadoop2.4\python\pyspark\context.py", line 245, in _ensure_initialized</p>
  
  <pre><code>SparkContext._gateway = gateway or launch_gateway()
  </code></pre>
  
  <p>File "C:\spark-1.6.0-bin-hadoop2.4\python\pyspark\java_gateway.py", line 79, in launch_gateway</p>
  
  <pre><code>proc = Popen(command, stdin=PIPE, env=env)
  </code></pre>
  
  <p>File "C:\Python35-32\lib\subprocess.py", line 950, in <strong>init</strong>
      restore_signals, start_new_session)</p>
  
  <p>File "C:\Python35-32\lib\subprocess.py", line 1220, in _execute_child
      startupinfo)</p>
  
  <p>FileNotFoundError: [WinError 2] The system cannot find the file specified</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p></p>
      </blockquote>
    </blockquote>
  </blockquote>