bazel 3.7.2 上用于在 MAC M1 上设置 mediapipe 的“darwin-arm64"的替代类型是什么? [英] What could be the alternative type of 'darwin-arm64' on bazel 3.7.2 for setting mediapipe on MAC M1?

查看:50
本文介绍了bazel 3.7.2 上用于在 MAC M1 上设置 mediapipe 的“darwin-arm64"的替代类型是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 mac m1 big sur 11.3.1 上的 pyhton3.8.6 上安装mediapipe"

I'm trying to install 'mediapipe' at pyhton3.8.6 on mac m1 big sur 11.3.1

所以当我尝试安装 bazel 并运行Hello World 桌面"示例时.

so when I'm trying to install bazel and run 'the Hello World desktop' example.

$ brew search bazel
==> Formulae
bazel ✔   bazelisk  babel     blaze     babeld

$ bazel --version
bazel 4.1.0-homebrew

所以我发现无法在 hmoebrew 上降级 bazel,但是当我运行此代码时,

so I found out ther is no way to downgrade bazel on hmoebrew, but when I run this code,

$ 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

所以没有这样的文件,我跟踪了该站点,发现没有'bazel-3.7.2-darwin-arm64'https://releases.bazel.build/3.7.2/release/

so there is not such file, I tracked the site and I found out there is no 'bazel-3.7.2-darwin-arm64' on https://releases.bazel.build/3.7.2/release/

有什么原因可以解决吗?

is there any why to solve it?

推荐答案

@James_Sharpe

@James_Sharpe

这正是我遇到的问题.

我已经安装了 4.1.0.

I already installed 4.1.0.

这就是我看到这个错误的原因.

so that's why I saw this error.

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'%

这篇关于bazel 3.7.2 上用于在 MAC M1 上设置 mediapipe 的“darwin-arm64"的替代类型是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆