Use findspark
Go to your python shell
pip install findspark import findspark findspark.init()
import the necessary modules
from pyspark import SparkContext rom pyspark import SparkConf
Done!!!