Installation via Scoop

Scoop is a command-line installer for Windows. It can be installed through the following PowerShell commands.

# Optional: Needed to run a remote script the first time
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
# Command for installing Scoop
Invoke-RestMethod get.scoop.sh | Invoke-Expression
  1. Install general dependencies:

    scoop bucket add versions
    scoop install python39
    
  2. Install Windows platform dependencies:

    The required C++ toolchain and Windows SDK are installed as part of Visual Studio 2022. The instructions below are for the Community edition, but you may want to use a different Visual Studio edition based on your usage and team size.

    This code snippet must be run in a traditional Command Prompt (cmd.exe).

    curl -sOL https://aka.ms/vs/17/release/vs_community.exe
    start /w vs_community.exe --passive --wait --norestart --nocache --add Microsoft.VisualStudio.Component.Windows11SDK.22000 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.Tools.ARM64
    del /q vs_community.exe
    
  3. Install Swift:

    scoop install swift