"Running Python from Command Prompt with Elevated User Privileges on Windows"

Gerald Jun 16, 2026

Running Python on Windows: A Step-by-Step Guide

How to Setup Python Environment Variables In Windows 10
How to Setup Python Environment Variables In Windows 10

As a Windows user, you may have heard of Python, a popular programming language used for web development, scientific computing, and more. However, installing and running Python on Windows can be a daunting task, especially for beginners. In this article, we will walk you through the process of setting up Python on Windows, including installing the necessary software, configuring environment variables, and running Python from the command line.

How to Set Up Python on Windows 10 - Make Tech Easier
How to Set Up Python on Windows 10 - Make Tech Easier

System Requirements

To run Python on Windows, you'll need to meet the following system requirements:

How to Run a Python Script
How to Run a Python Script
  • A 64-bit or 32-bit version of Windows 10, 8, or 7
  • A minimum of 4 GB of RAM (8 GB or more recommended)
  • A 64-bit or 32-bit processor that supports SSE2

Installing Python on Windows

How to Install Python on Windows 10 Fast and Easy – Full Guide for Beginners
How to Install Python on Windows 10 Fast and Easy – Full Guide for Beginners

To install Python on Windows, follow these steps:

  1. Download the latest version of Python from the official Python website: https://www.python.org/downloads/
  2. Run the installer and follow the prompts to install Python:
    • Choose the installation location (default is C:\Python39)
    • Select the components to install (e.g., IDLE, documentation, etc.)
    • Choose the install location for the pip package manager

  • Once the installation is complete, click on the Finish button to exit the installer
  • How to Set Up Python on Windows 10 - Make Tech Easier
    How to Set Up Python on Windows 10 - Make Tech Easier

    Configuring Environment Variables

    To run Python from the command line, you need to configure the environment variables. Follow these steps:

    1. Right-click on the Start button and select System
    2. In the System settings window, click on Advanced system settings on the right side
    3. Click on Environment Variables
    4. Under System Variables, scroll down and find the Path variable, then click Edit
    5. In the Edit Environment Variable window, click on New and enter the path to the Python executable (e.g., C:\Python39\bin)
    6. Click OK to close all the windows
    How to Set Up Python the Right Way (2025 Beginner Guide)
    How to Set Up Python the Right Way (2025 Beginner Guide)

    Verifying the Installation

    To verify that Python is installed correctly, open the Command Prompt or PowerShell and type:

    How To Run Your Python Scripts - PythonForBeginners.com
    How To Run Your Python Scripts - PythonForBeginners.com
    How To Run A Python Script
    How To Run A Python Script
    10 Python Tricks Every Beginner Should Know
    10 Python Tricks Every Beginner Should Know
    How to Check the Version of Python
    How to Check the Version of Python
    How to unzip files using Python?
    How to unzip files using Python?
    How to Add Python to PATH on Windows 11 (Step-by-Step Guide) - Tech2Geek
    How to Add Python to PATH on Windows 11 (Step-by-Step Guide) - Tech2Geek
    How to Install Python 3.13.4 on Windows 11/10
    How to Install Python 3.13.4 on Windows 11/10
    Python Basics, Python Wallpaper, Python Code, Python Programming, Computer Programming, Skills To Learn, Information Technology, Study Materials, Python
    Python Basics, Python Wallpaper, Python Code, Python Programming, Computer Programming, Skills To Learn, Information Technology, Study Materials, Python
    🔧 How to Install and Download Python on Windows – Python for Beginners Tutorial | 2026
    🔧 How to Install and Download Python on Windows – Python for Beginners Tutorial | 2026
    Top 10 Python Mistakes Beginners Make
    Top 10 Python Mistakes Beginners Make
    How to Reverse A String in Python?
    How to Reverse A String in Python?
    Python Tuples
    Python Tuples
    | Pythonista Planet
    | Pythonista Planet
    python programming
    python programming
    How to install python 3 on Windows, Mac, OS and Linux
    How to install python 3 on Windows, Mac, OS and Linux
    Using Python with Arduino - Controlling an LED
    Using Python with Arduino - Controlling an LED
    How to Use Python rstrip Method?  Advanced Examples
    How to Use Python rstrip Method? Advanced Examples
    Installing Python on Windows
    Installing Python on Windows
    Learn Python the Right Way in 5 Steps
    Learn Python the Right Way in 5 Steps
    5 Python Mistakes Beginners Make (And How to Fix Them Fast)
    5 Python Mistakes Beginners Make (And How to Fix Them Fast)

    python --version

    If everything is installed correctly, you should see the version of Python installed on your system.

    Running Python from the Command Line

    To run Python from the command line, follow these steps:

    1. Open the Command Prompt or PowerShell
    2. Type `python` and press Enter
    3. This will open the Python interpreter, where you can write Python code and execute it

    Troubleshooting Common Issues

    If you encounter any issues while installing or running Python, here are some common solutions:

    • Ensure that you have installed the correct version of Python for your system architecture (32-bit or 64-bit)
    • Check that the environment variables are configured correctly
    • Try running the Command Prompt or PowerShell as an administrator

    Conclusion (but not really)

    Running Python on Windows is a straightforward process that requires minimal technical expertise. By following the steps outlined in this article, you should be able to install and run Python on your Windows system. If you encounter any issues, refer to the troubleshooting section above. Happy coding!