check if Spark is installed with python code example Example: how to check spark version spark-submit --version