Install Python on Windows

Python tutorial · PySpark.in

Step 1: Check if Python is already installed

  1. Press Windows + R on your keyboard
  2. Type cmd and press Enter → this opens Command Prompt
  3. In the black window, type:
  4. python --version
  5. Press Enter

What do you see?

Then Python is already installed  (you can skip to Step 5).

Then Python is not installed  → continue to the next step.

Step 2: Download Python for Windows

  1. Open your browser (Chrome / Edge / Firefox)
  2. Go to the official Python website: https://www.python.org
  3. On the homepage, you’ll see a big yellow button:

“Download Python 3.x.x”

(The version may change, e.g. 3.13.0)

  1. Click that button → a file like python-3.x.x-amd64.exe will start downloading.

Note: Always download Python from the official website, not random sites.

Step 3: Run the Python installer

  1. When the download finishes, open your Downloads folder.
  2. Double-click the file:
  3. python-3.x.x-amd64.exe
  4. The Python Setup window will open.

Step 4: Important – “Add Python to PATH”

This is the most important step for beginners.

On the first installation screen:

“Add Python 3.x to PATH”

 If you forget to tick this, python won’t work in Command Prompt.

Step 5: Wait for installation to finish

Setup was successful

Python is now installed on your system 

Step 6: Verify Python installation

Let’s confirm everything is working.

  1. Open Command Prompt again:
  2. Press Windows + R → type cmd → press Enter
  3. Type:
  4. python --version
  5. Press Enter

You should see something like:

Now check pip (Python’s package manager):

If you see a version (e.g. pip 24.0), then pip is also installed 

Step 7: Run your first Python program (Hello, World!)

Option 1 – Using Python interactive shell

  1. In Command Prompt, type:
  2. python
  3. You will see something like:
  4. Python 3.11.7 (tags/...)
  5. >>>
  6. At the >>> prompt, type:

print("Hello, Python from Windows!")

More Python tutorials

All tutorials · Try the free PySpark compiler · Practice challenges