Featured Article

Install Python on Windows using Winget

Cynthia Jul 13, 2026

Looking to install Python on your Windows machine? winget, a package manager built into Windows, makes this process a breeze. Let's guide you through the steps, from getting started with winget to installing Python seamlessly.

GIMPで画像生成AIを使えるようにしてNPUでの処理も可能にするOpenVINOプラグイン「OpenVINO AI Plugins for GIMP」レビュー
GIMPで画像生成AIを使えるようにしてNPUでの処理も可能にするOpenVINOプラグイン「OpenVINO AI Plugins for GIMP」レビュー

Before we dive in, ensure you're using Windows 10 (version 1903 or later) or Windows 11. These versions come with winget pre-installed, so you're ready to go. Let's explore the world of Python installation using winget.

Installing Python on Windows
Installing Python on Windows

Understanding Windows Package Manager (winget)

winget is a powerful command-line tool that enables you to easily install software on your Windows machine. It simplifies software installation by automating the process and ensuring stability across different versions of 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

In this guide, we'll harness the power of winget to install Python. Let's dive right in and see how it works.

Initializing winget

How to Install Python on Windows - Beginner friendly
How to Install Python on Windows - Beginner friendly

Although winget comes pre-installed with supported Windows versions, you might need to initialize it for first use. To do this, open PowerShell as an administrator and run the following command:

winget init -y

This command initializes winget, making it ready to install software.

Installing Python with winget

How to Install PIP on Windows for Python: Step-by-Step Guide
How to Install PIP on Windows for Python: Step-by-Step Guide

Now that winget is initialized, we can install Python. Here's how to do it:

  1. Open PowerShell as an administrator.
  2. Run the following command to search for Python packages available through winget:

winget search python

This command lists Python packages that winget can install.

How to Install Python 3.13.4 on Windows 11/10
How to Install Python 3.13.4 on Windows 11/10
  1. Once you've found the desired Python package (e.g., python:3.9), run the following command to install it:

winget install python:3.9

The installation process begins. Once complete, you'll have Python installed on your Windows machine using winget.

How to Install and Download Python on Windows – Python for Beginners Tutorial
How to Install and Download Python on Windows – Python for Beginners Tutorial
How to Set Up Python the Right Way (2025 Beginner Guide)
How to Set Up Python the Right Way (2025 Beginner Guide)
Create and Show Root Window of tkinter GUI Program - EasyCodeBook.com
Create and Show Root Window of tkinter GUI Program - EasyCodeBook.com
Python VENV Virtual Environment Tutorial on Windows for Absolute Beginners
Python VENV Virtual Environment Tutorial on Windows for Absolute Beginners
How to install Python 3 on Windows: A Comprehensive Step-by-Step Guide
How to install Python 3 on Windows: A Comprehensive Step-by-Step Guide
two black and gold posters with different types of wires on them, one in the middle
two black and gold posters with different types of wires on them, one in the middle
Basic Maths operations in Python
Basic Maths operations in Python
Top 7 Ways to Fix "Error Opening File for Writing" on Windows - Make Tech Easier
Top 7 Ways to Fix "Error Opening File for Writing" on Windows - Make Tech Easier
Introduction to wxPython | UX Python
Introduction to wxPython | UX Python

Verifying the Python Installation

After installing Python via winget, it's a good idea to verify that everything is working as expected. Here's how:

Checking Python Version

Open your command prompt or PowerShell and type the following command:

python --version

If Python is installed correctly, you'll see the installed version displayed (e.g., Python 3.9.7).

Running Python in Interactive Mode

To ensure your Python installation is working properly, try running Python in interactive mode:

python

You should see the classic Python interactive mode greeting (e.g., >> or >>>). Now you're ready to start coding in Python!

That's it! You've successfully installed Python on your Windows machine using the winget package manager. Happy coding!