title: PySpark Will not start - ‘python’: No such file or directory
body: <p>I'm trying to setup pyspark on my desktop and interact with it via the terminal. 
  I'm following this guide,</p>
  
  <p><a href="http://jmedium.com/pyspark-in-python/" rel="noreferrer">http://jmedium.com/pyspark-in-python/</a></p>
  
  <p>When I run 'pyspark' in the terminal is says,</p>
  
  <pre><code>/home/jacob/spark-2.1.0-bin-hadoop2.7/bin/pyspark: line 45: python:
  command not found
  env: ‘python’: No such file or directory
  </code></pre>
  
  <p>I've followed several guides which all lead to this same issue (some have different details on setting up the .profile. Thus far none have worked correctly).
  I have java, python3.6, and Scala installed.
  My .profile is configured as follows:</p>
  
  <pre><code>#Spark and PySpark Setup
  PATH="$HOME/bin:$HOME/.local/bin:$PATH"
  export SPARK_HOME='/home/jacob/spark-2.1.0-bin-hadoop2.7'
  export PATH=$SPARK_HOME:$PATH
  export PYTHONPATH=$SPARK_HOME/python:$PYTHONPATH
  #export PYSPARK_DRIVER_PYTHON="jupyter"
  #export PYSPARK_DRIVER_PYTHON_OPTS="notebook"
  export PYSPARK_PYTHON=python3.6.5
  </code></pre>
  
  <p>Note that jupyter notebook is commented out because I want to launch pyspark in the shell right now with out the notebook starting</p>
  
  <p>Interestingly spark-shell launches just fine</p>
  
  <p>I'm using Ubuntu 18.04.1 and
  Spark 2.1</p>
  
  <p>See Images </p>
  
  <p>I've tried every guide I can find, and since this is my first time setting up Spark i'm not sure how to troubleshoot it from here</p>
  
  <p>Thank you</p>
  
  <p><a href="https://i.stack.imgur.com/Le538.png" rel="noreferrer">Attempting to execute pyspark</a></p>
  
  <p><a href="https://i.stack.imgur.com/jv0gB.png" rel="noreferrer">.profile</a></p>
  
  <p><a href="https://i.stack.imgur.com/jH982.png" rel="noreferrer">versions</a></p>