
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
Go to the official Python website
Visit python.org/downloads. Always download from here — never from third-party sites which may bundle unwanted software.
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.
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
Run the installer
Double-click the downloaded .exe file to launch the installer.
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.
The #1 mistake beginners make is forgetting to check Add Python to PATH. Double-check this before clicking Install Now.
Click Install Now
Choose Install Now for the recommended installation. This installs Python for your current user with default settings.
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.
Open Command Prompt
Press Win + R, type cmd, press Enter.
Check Python version
python --versionYou should see: Python 3.12.0 (or similar). If you get “python is not recognized”, see the troubleshooting section below.
Verify pip (package manager)
pip --versionpip 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:
Find your Python installation path
Search for python.exe in File Explorer. It’s usually at: C:UsersYourNameAppDataLocalProgramsPythonPython312
Add to System PATH
Press Win + S, search for Environment Variables, click Edit the system environment variables.
Edit Path variable
Click Environment Variables → under System variables, find Path → Edit → New → paste your Python folder path → OK on all dialogs.
Restart Command Prompt
Close and reopen Command Prompt, then try python --version again.
Python installed? Set up your development environment:
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