Install spark environment under Conda Install the spark under the Conda environment, some details you may loss…