import os
from pyspark import SparkConf
SUBMIT_ARGS = '--packages com.databricks:spark-csv_2.11:1.2.0 pyspark-shell'
os.environ['PYSPARK_SUBMIT_ARGS'] = SUBMIT_ARGS
conf = SparkConf()
Add Jar to standalone pyspark