MoonPoint Support Logo

 




Advanced Search
July
Sun Mon Tue Wed Thu Fri Sat
     
9 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
2026
Months
JulAug Sep
Oct Nov Dec


Thu, Jul 09, 2026 2:50 pm

Installing Python on a Microsoft Windows system using winget

If you would like to use the Python programming language on a Microsoft Windows system, one way to install Python software is to use the Windows Package Manager, aka winget. Open a command prompt and enter the command winget install python. After the software is installed, you can view information on the Python package with the command winget show python.

C:\>winget install python
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?
[Y] Yes [N] No: Y
Found Python 3.12 [9NCVDN91XZQP] Version Unknown
This package is provided through Microsoft Store. WinGet may need to acquire the package from Microsoft Store on behalf of the current user.
Agreements for Python 3.12 [9NCVDN91XZQP] Version Unknown
Version: Unknown
Publisher: Python Software Foundation
Publisher Url: https://www.python.org/
Publisher Support Url: https://www.python.org/doc/
License: https://docs.python.org/3.12/license.html
Privacy Url: https://www.python.org/privacy
Copyright: (c) Python Software Foundation
Agreements:
Category: Developer tools
Pricing: Free
Free Trial: No
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
Seizure Warning: https://aka.ms/microsoft-store-seizure-warning
Store License Terms: https://aka.ms/microsoft-store-license

The publisher requires that you view the above information and accept the agreements before installing.
Do you agree to the terms?
[Y] Yes [N] No: Y
Starting package install...
██████████████████████████████ 100%
Successfully installed

C:\>winget show python
Found Python 3.12 [9NCVDN91XZQP]
Version: Unknown
Publisher: Python Software Foundation
Publisher Url: https://www.python.org/
Publisher Support Url: https://www.python.org/doc/
Description:
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.

The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python web site, https://www.python.org/, and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation.

The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). Python is also suitable as an extension language for customizable applications.
License: https://docs.python.org/3.12/license.html
Privacy Url: https://www.python.org/privacy
Copyright: (c) Python Software Foundation
Agreements:
Category: Developer tools
Pricing: Free
Free Trial: No
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
Seizure Warning: https://aka.ms/microsoft-store-seizure-warning
Store License Terms: https://aka.ms/microsoft-store-license
Installer:
Installer Type: msstore
Store Product Id: 9NCVDN91XZQP
Offline Distribution Supported: true

C:\>

You can then type python in a command prompt window to open the Python interpreter where you can enter commands. E.g., in the example below it is being used as a calculator. You can exit the program by typing exit(). You can run Python scripts from the command prompt window using commands in the form python example.py.

C:\>python
Python 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 99 / 4
24.75
>>> 12 * 13
156
>>> exit()

C:\>

Related articles:

  1. Obtaining a command prompt in Windows 11
    Date: August 14, 2023
  2. Obtaining a command prompt in Windows 10
    Date: February 18, 2017
  3. WinPython - Python for Microsoft Windows
    Date: May 13, 2018
  4. Installing new packages for WinPython
    Date: May 18, 2018

[/languages/python] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo