gpt4 book ai didi

macos - 通过 brew 安装 azure cli 在 mac m1 中不起作用

转载 作者:行者123 更新时间:2023-12-04 07:43:07 25 4
gpt4 key购买 nike

我一直在尝试在新的 mac m1 中安装 azure cli。但它失败了。我收到以下错误

brew reinstall azure-cli
==> Downloading https://ghcr.io/v2/homebrew/core/azure-cli/manifests/2.22.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/azure-cli/blobs/sha256:1980c967
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs
######################################################################## 100.0%
==> Reinstalling azure-cli
==> Pouring azure-cli--2.22.1.arm64_big_sur.bottle.tar.gz
🍺 /opt/homebrew/Cellar/azure-cli/2.22.1: 19,449 files, 329.3MB
浇完之后就停了。我也尝试使用 pip3 安装,我可以成功安装,但是当我输入“az”命令时,出现以下错误
/opt/homebrew/bin/az: line 2: 64784 Killed: 9               AZ_INSTALLER=HOMEBREW /opt/homebrew/Cellar/azure-cli/2.22.1/libexec/bin/python -m azure.cli "$@"

最佳答案

如评论中所述:我的 python3 不是通过 brew 安装的。所以先卸载了brew和python3。然后再次安装 brew(在此之前确保 Rosetta 2 正常工作)。然后尝试 brew doctor 。有错误说/usr/... 然后,我删除了这些文件。一旦成功移除/删除 brew doctor 将运行良好。

关于macos - 通过 brew 安装 azure cli 在 mac m1 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67348226/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com