layout: documentation title: Installing Bazel on Windows

Installing Bazel on Windows

Supported Windows platforms:

  • 64 bit Windows 7 or higher, or equivalent Windows Server versions.

Check Microsoft's Operating System Version table to see if your OS is supported.

Before installing Bazel, make sure your system meets the system and software requirements. See the page about using Bazel on Windows.

Install Bazel on Windows using one of the following methods:

Download the binary (recommended)

Go to Bazel's GitHub releases page and download the Windows binary.

For convenience, move the binary to a directory that's on your %PATH%. This way you can run Bazel by typing bazel in any directory, without typing out the full path. That said, you may put the binary anywhere on your filesystem.

After you download the binary, you'll need additional software and some setup in your environment to run Bazel. For details, see the Windows requirements.

Install using Chocolatey

You can install the Bazel package using the Chocolatey package manager:

choco install bazel

This command will install the latest available version of Bazel and most of its dependencies, such as the MSYS2 shell. This will not install Visual C++ though.

See Chocolatey installation and package maintenance guide for more information about the Chocolatey package.