Wingetlywingetly
← All apps

Black

by Python Software Foundationv26.5.1

Last updated

The uncompromising Python code formatter

Install with winget

$ winget install --id psf.black --exact --version 26.5.1

Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.

Built by Pckgr

For Intune admins

Stop chasing app updates. Pckgr patches them for you.

Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.

Start free 30-day trial

No credit card required.

About

Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting.

Installers · v26.5.1

ArchitectureTypeScopeInstallDownload
x64Portable-Direct

Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.

Security

2 known CVEs via NVD

  • high7.5Patched in wingetCVE-2026-32274affects before 26.3.1Mar 12, 2026

    Black is the uncompromising Python code formatter. Prior to 26.3.1, Black writes a cache file, the name of which is computed from various formatting options. The value of the --python-cell-magics option was placed in the filename without sanitization, which allowed an attacker w...

  • critical9.8Patched in wingetCVE-2026-31900affects before 26.3.0Mar 11, 2026

    Black is the uncompromising Python code formatter. Black provides a GitHub action for formatting code. This action supports an option, use_pyproject: true, for reading the version of Black to use from the repository pyproject.toml. A malicious pull request could edit pyproject.t...

Source: NVD, updated 2h ago. Patch status is best-effort: NVD's fix version is compared against the latest version in winget, but the two version formats don't always align. Confirm with the vendor advisory before treating any specific build as safe.

Related apps

  • Python 3.12Python Software Foundation
    Python.Python.3.12v3.12.10

    Python is a programming language that lets you work more quickly and integrate your systems more effectively.

  • Python 3.14Python Software Foundation
    Python.Python.3.14v3.14.7

    A programming language that lets you work more quickly and integrate your systems more effectively.

  • Python 3.11Python Software Foundation
    Python.Python.3.11v3.11.9

    Python is a programming language that lets you work more quickly and integrate your systems more effectively.

  • Python 3.13Python Software Foundation
    Python.Python.3.13v3.13.15

    Python is a programming language that lets you work more quickly and integrate your systems more effectively.

  • Python Install ManagerPython Software Foundation
    Python.PythonInstallManagerv26.3.240.0

    Install, manage, and launch Python on Windows.

  • Python 3.8Python Software Foundation
    Python.Python.3.8v3.8.10

    Python is a programming language that lets you work more quickly and integrate your systems more effectively.

More from Python Software Foundation or browse autopep8, code, codeformatter.

Frequently asked questions

How do I install Black on Windows?
Open Windows Terminal, PowerShell, or Command Prompt and run: winget install --id psf.black --exact --version 26.5.1. winget downloads the installer from Python Software Foundation and runs it. Requires Windows 10 (1809+) or Windows 11.
How do I install Black silently for unattended deployment?
Add --silent and accept the agreements upfront: winget install --id psf.black --exact 26.5.1 --silent --accept-package-agreements --accept-source-agreements. This is the variant Intune, Configuration Manager, and other deployment tools should use.
How do I uninstall Black via winget?
Run: winget uninstall --id psf.black --exact. Add --silent for unattended uninstalls. winget will use the registered uninstaller from Black's Apps & Features entry.
Is Black free?
Black is distributed under MIT. Refer to the publisher (https://github.com/psf/black) for the full license terms - Wingetly itself does not charge for installation.
Does Black work on Windows 10?
Yes, as long as your Windows 10 build supports winget (1809 or newer). winget ships with App Installer on Windows 10/11 and pulls Black directly from the publisher.
How do I keep Black up to date?
Run winget upgrade --id psf.black --exact, or winget upgrade --all to update everything winget tracks. We index 3 versions of Black from microsoft/winget-pkgs.

Recent versions

  • 26.5.1latest
  • 25.1.0
  • 24.10.0