title: How to import pyspark in anaconda
body: <p>I am trying to import and use <code>pyspark</code> with anaconda.</p>
  
  <p>After installing spark, and setting the <code>$SPARK_HOME</code> variable I tried:</p>
  
  <pre><code>$ pip install pyspark
  </code></pre>
  
  <p>This won't work (of course) because I discovered that I need to tel python to look for <code>pyspark</code> under <code>$SPARK_HOME/python/</code>. The problem is that to do that, I need to set the <code>$PYTHONPATH</code> while anaconda don't use that environment variable.</p>
  
  <p>I tried to copy the content of <code>$SPARK_HOME/python/</code> to <code>ANACONDA_HOME/lib/python2.7/site-packages/</code> but it won't work.</p>
  
  <p>Is there any solution to use pyspark in anaconda?</p>