我正在尝试在 mac m1 big sur 11.3.1 上的 pyhton3.8.6 上安装“mediapipe”
因此,当我尝试安装 bazel 并运行“Hello World 桌面”示例时。
$ brew search bazel
==> Formulae
bazel ✔ bazelisk babel blaze babeld
$ bazel --version
bazel 4.1.0-homebrew
所以我发现没有办法在 hmoebrew 上降级 bazel,但是当我运行这段代码时,
$ python3 setup.py install --link-opencv
running install
running build_binary_graphs
fail to get bazel version by $ bazel --version: b'\x1b[31mERROR: The project you\'re trying to build requires Bazel 3.7.2 (specified in /Users/san/work/tools/mediapipe/.bazelversion), but it wasn\'t found in /opt/homebrew/Cellar/bazel/4.1.0/libexec/bin.\x1b[0m\n\nBazel binaries for all official releases can be downloaded from here:\n https://github.com/bazelbuild/bazel/releases\n\nYou can download the required version directly using this command:\n (cd "/opt/homebrew/Cellar/bazel/4.1.0/libexec/bin" && curl -fLO https://releases.bazel.build/3.7.2/release/bazel-3.7.2-darwin-arm64 && chmod +x bazel-3.7.2-darwin-arm64)\n'%
很快,它说我要跑
cd "/opt/homebrew/Cellar/bazel/4.1.0/libexec/bin" && curl -fLO https://releases.bazel.build/3.7.2/release/bazel-3.7.2-darwin-arm64 && chmod +x bazel-3.7.2-darwin-arm64
所以我运行它,
$ cd "/opt/homebrew/Cellar/bazel/4.1.0/libexec/bin" && curl -fLO https://releases.bazel.build/3.7.2/release/bazel-3.7.2-darwin-arm64 && chmod +x bazel-3.7.2-darwin-arm64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
所以没有这样的文件,我跟踪了该站点,发现https://releases.bazel.build/3.7.2/release/上没有“bazel-3.7.2-darwin-arm64”
有什么要解决的吗?