

You installed and removed various versions of Visual Studio You installed multiple versions of Visual Studio If you open a new cmd.exe or PowerShell terminal and run Bazel now, it will find Bash.īazel does not find Visual Studio or Visual C++ The "Variable value" field now has the path to bash.exe. Select the bash.exe or bash file and click OK Navigate to the MSYS2 directory, then to usr\bin below it.įor example, this might be C:\msys64\usr\bin on your system. Look at the list on the top ("User variables for "), and click the "New." You installed MSYS2 i686 instead of MSYS2 x86_64įind the setting "Edit environment variables for your account"

INSTALL GIT WINDOWS X86 INSTALL
You installed MSYS2 not under the default install path Troubleshooting Bazel does not find Bash or bash.exe You will need this to build Python code on Windows.Īlso supported: Python 2.7 or newer for Windows x86-64 You will need this to build Java code on Windows. Java SE Development Kit 11 (JDK) for Windows 圆4

Visual C++ Build Tools 2017 (or newer) and Windows 10 SDK.You will need this to build C++ code on Windows. Optional: If you want to use Bazel from CMD or Powershell and still be able Open the MSYS2 terminal and run this command: pacman -S zip unzip patch diffutils git Projects that depend on Bash tools in PATH need this step (for example TensorFlow). These tools by default, so you need to install them manually. You will likely need these to build and run targets that depend on Bash. Bazel shows anĮrror if a build target needs Bash but Bazel could not locate it. Genrule, sh_binary, sh_test, but there may be more (such as Starlark rules). You will need MSYS2 to build, test, or run targets that depend on Bash. MSYS2 is a software distro and building platform for Windows. Installing compilers and language runtimesĭepending on which languages you want to build, you will need: Installing compilers and language runtimes.Next, you can check out more tips and guidance here: To check the installation is correct, try to run: bazel version
INSTALL GIT WINDOWS X86 HOW TO
Check out how to set environment variables. You can also change your system PATH environment variable to make it permanent. To make Bazel easily accessible from command prompts or PowerShell by default, you can rename the Bazel binary to bazel.exe and add it to your default paths.
