Search code examples
tensorflowversionbazel

How to find the Bazel version currently in my system via command prompt code or some other ways for Tensorflow installation


In Tensorflow's official website (https://www.tensorflow.org/install/source_windows) there specified the build tools bazel versions required for each version of Tensorflow.

How can i check whether i have the right version of bazel in my windows 10 system(before getting into installing the bazel)?

Do i even need to worry about this while i am setting up the Tensorflow in my system?


Solution

  • Running:

    bazel --version
    

    Will tell you which version of bazel is installed (and in search PATH) on your system.

    For ensuring use of correct / consistent version of bazel across the board, it may be helpful to use bazelisk as a front to bazel which also honors the .bazelversion file in the current dir or its parents (if present, as it is in the tensorflow tree ; that would normally translate to, within the bazel workspace) and runs (downloads if needed) corresponding bazel.