1.安装bazel
sudo apt-get update && sudo apt-get install bazel
sudo apt-get upgrade bazel
问题:
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.28.0 installed.
Please downgrade your bazel installation to version 0.26.1 or lower to build TensorFlow! To downgrade: download the installer for the old version (from https://github.com/bazelbuild/bazel/releases) then run the installer.
2.卸载bazel
sudo apt remove bazel