DEV Community

Cover image for How to Install Python on Windows 11 (Step-by-Step Guide for Beginners)
Dus Mamud
Dus Mamud

Posted on

How to Install Python on Windows 11 (Step-by-Step Guide for Beginners)

In this tutorial, I’ll walk you through the complete process of installing Python on Windows 11, including verifying the installation, setting environment variables, and testing everything in your terminal.

Let’s get Python running on your system in under 5 minutes.

⚙️ Step 1: Download the Latest Python Installer

  1. Go to the official Python Downloads page.
  2. Click on the latest Python release for Windows (typically the first one listed).
  3. Download the Windows installer (64-bit).

Tip: Always use the latest stable version unless you have a specific need for an older one.

📦 Step 2: Run the Installer

Once the .exe file finishes downloading:

  1. Double-click to launch the installer.
  2. Check the box that says: ✅ Add Python 3.x to PATH
  3. Click “Customize Installation” (recommended) or proceed with “Install Now.”

Choosing Customize Installation lets you add pip, IDLE, and documentation – all useful tools for beginners.

⚡ Step 3: Set Up PATH and Environment Variables

If you forgot to check “Add Python to PATH”, you can manually do this:

  1. Open Start Menu → Environment Variables.
  2. Under System variables, find and select Path.
  3. Click EditNew and add:
   C:\Users\<YourUsername>\AppData\Local\Programs\Python\Python3x\
Enter fullscreen mode Exit fullscreen mode

(Replace 3x with your Python version)

🧪 Step 4: Verify Python Installation

Now let’s check if Python and pip were installed correctly:

Open Command Prompt (cmd) and type:

python --version
Enter fullscreen mode Exit fullscreen mode

You should see something like:

Python 3.12.1
Enter fullscreen mode Exit fullscreen mode

Then check pip:

pip --version
Enter fullscreen mode Exit fullscreen mode

Success? You’re all set! 🎉

💡 Bonus: Install VS Code and Test a Python Script

  1. Install Visual Studio Code.
  2. Open a new file named hello.py.
  3. Add the following code:
print("Hello, Python on Windows 11!")
Enter fullscreen mode Exit fullscreen mode
  1. Run it in the terminal with:
python hello.py
Enter fullscreen mode Exit fullscreen mode

📝 TL;DR

  • ✅ Download Python from python.org
  • ✅ Use the installer and check "Add to PATH"
  • ✅ Verify via python --version in terminal
  • ✅ Optional: Install VS Code to write and run Python code

💬 Final Thoughts

Installing Python on Windows 11 is quick—but skipping small steps like setting PATH can cause big headaches later. Now that you’ve got it installed, you’re ready to explore Python’s true power—whether that’s scripting, web development, or automation.

What’s the first project you’re planning to build with Python?
Drop it in the comments 👇 or follow me for more beginner-friendly tech tutorials!

🔗 Helpful Links

Top comments (2)

Collapse
 
roman_84245e13a62bea35443 profile image
Roman

Thankyou this is helpful 🥰😍