Installing Spark on Windows (pyspark)

Updated: Oct 7, 2019

Prerequisite: Follow these steps to install Apache Spark on windows machine.

Now-a-days Python is used by many applications. So it is quite possible that Python is already available on your machine. To check, just run this command on your command prompt.

C:\Users\rajar> python --version


operable program or batch file.

If Python is present on your computer, command will output the Python version like this.

Python x.x.x

Check if Java is properly installed, just run java -version and you should be able to see Java version running on your computer.

Download & Install Python

Go to Python download page and download the latest version (don't download Python 2).

Download 64 bit or 32 bit installer depending upon your system configuration.

Double click on the downloaded executable file.

Don't forget to check the box - Add Python 3.7 to PATH , then click Install now. Thats all, it will take couple of minutes to complete the installation.

Now test it, run previous command again and you should be able to see Python version this time.

C:\Users\rajar> python --version

Python 3.7.4

Run pyspark

Now, run the command pyspark and you should be able to see the Spark version.

If you have any question please mention in comments section below and I will help you out with installation process. Thank you.

Next: Just enough Scala for Spark

Navigation menu

1. Apache Spark and Scala Installation