How to Install Python on Windows (Step-by-Step)

Complete beginner's guide to installing Python on Windows 10 and 11. Includes PATH setup, pip verification, writing your first script, and common troubleshooting tips.

How to Install Python on Windows (Step-by-Step)
Install Python Windows

Python is one of the world’s most popular programming languages, powering everything from web applications and automation scripts to data science and AI. Installing it on Windows is straightforward — but there’s one common mistake beginners make that this guide will help you avoid.

Step 1: Download Python from the Official Website

1

Go to the official Python website

Visit python.org/downloads. Always download from here — never from third-party sites which may bundle unwanted software.

2

Click Download Python 3.x.x

The site automatically detects you’re on Windows. Click the big yellow download button to get the latest stable version.

Which version?

Always install the latest Python 3 version unless a specific project requires an older version. Avoid Python 2 — it’s no longer supported.

Step 2: Install Python — With the Critical Setting

1

Run the installer

Double-click the downloaded .exe file to launch the installer.

2

CHECK “Add Python to PATH” — This is Critical!

Before clicking anything else, look at the bottom of the installer window. Check the box that says “Add Python x.x to PATH”. If you skip this, Python won’t work from the command line and you’ll need to fix it manually.

Most Common Mistake

The #1 mistake beginners make is forgetting to check Add Python to PATH. Double-check this before clicking Install Now.

3

Click Install Now

Choose Install Now for the recommended installation. This installs Python for your current user with default settings.

4

Complete the installation

Wait 1–2 minutes for installation to complete. Click Close. You may need to also click “Disable path length limit” if prompted — this is recommended.

Step 3: Verify the Installation

Let’s confirm Python installed correctly.

1

Open Command Prompt

Press Win + R, type cmd, press Enter.

2

Check Python version

python --version

You should see: Python 3.12.0 (or similar). If you get “python is not recognized”, see the troubleshooting section below.

3

Verify pip (package manager)

pip --version

pip comes installed with Python automatically. You should see its version number.

Step 4: Run Your First Python Script

Let’s confirm Python runs code. In Command Prompt, type:

python -c "print('Hello, World! Python is working!')"

You should see the message printed. Python is working! Now let’s try creating a script file:

# Create a file called hello.py and add this line:
print("Hello from Python!")
print("2 + 2 =", 2 + 2)

# Run it from Command Prompt:
python hello.py

Step 5: Install Packages with pip

Python’s real power comes from its thousands of libraries. Use pip to install them:

# Install the popular requests library for web requests
pip install requests

# Install data science essentials
pip install numpy pandas matplotlib

# Install Django for web development
pip install django

# List all installed packages
pip list

Troubleshooting: “Python is not recognized”

If you get this error, Python’s PATH wasn’t set during installation. Fix it manually:

1

Find your Python installation path

Search for python.exe in File Explorer. It’s usually at: C:UsersYourNameAppDataLocalProgramsPythonPython312

2

Add to System PATH

Press Win + S, search for Environment Variables, click Edit the system environment variables.

3

Edit Path variable

Click Environment Variables → under System variables, find Path → Edit → New → paste your Python folder path → OK on all dialogs.

4

Restart Command Prompt

Close and reopen Command Prompt, then try python --version again.

Python installed? Set up your development environment:

Set Up VS Code
Install Git
Install Node.js

🔧

zSmartFix Editorial Team

Step-by-step technical guides tested on real hardware. Our guides are independently written and freely accessible to everyone.

Leave a Reply

Your email address will not be published. Required fields are marked *