Googler | 1fbef39 | 2017-03-22 09:05:09 +0000 | [diff] [blame] | 1 | --- |
| 2 | layout: documentation |
| 3 | title: Installing Bazel on Windows |
| 4 | --- |
| 5 | |
| 6 | # <a name="windows"></a>Install Bazel on Windows |
| 7 | |
| 8 | Windows support is highly experimental. Known issues are [marked with |
| 9 | label "Windows"](https://github.com/bazelbuild/bazel/issues?q=is%3Aissue+is%3Aopen+label%3A%22category%3A+multi-platform+%3E+windows%22) |
| 10 | on GitHub issues. |
| 11 | |
| 12 | We currently support only 64 bit Windows 7 or higher and we compile Bazel as a |
| 13 | MSYS2 binary. |
| 14 | |
| 15 | Install Bazel on Windows using one of the following methods: |
| 16 | |
| 17 | * [Use Chocolatey](#install-on-windows-chocolatey) |
| 18 | * [Use the binary distribution](#download-binary-windows) |
| 19 | * [Compile Bazel from source](install-compile-source.md) -- make sure |
| 20 | your machine meets the [requirements](windows.md#requirements) |
| 21 | |
| 22 | |
| 23 | ## <a name="install-on-windows-chocolatey"></a>Install using Chocolatey |
| 24 | |
| 25 | You can install the unofficial package using the |
| 26 | [chocolatey](https://chocolatey.org) package manager: |
| 27 | |
| 28 | ```sh |
| 29 | choco install bazel |
| 30 | ``` |
| 31 | |
| 32 | This will install the latest available version of bazel, and dependencies. |
| 33 | |
| 34 | This package is experimental; please provide feedback to `@petemounce` in GitHub |
| 35 | issue tracker. See the [Chocolatey installation and package |
| 36 | maintenance](windows-chocolatey-maintenance.md) guide for more information. |
| 37 | |
| 38 | |
| 39 | ## <a name="download-binary-windows"></a>Install using the binary distribution |
| 40 | |
| 41 | We provide binary versions on our |
| 42 | <a href="https://github.com/bazelbuild/bazel/releases">GitHub releases page</a> |
| 43 | |
| 44 | This is merely the Bazel binary. You'll need additional software (e.g. msys2 |
| 45 | shell of the right version) and some setup in your environment to run Bazel. |
| 46 | See these requirements on our [Windows page](windows.md#requirements). |