[英]Install azure cli via brew not working in mac m1
I have be trying to install azure cli in new mac m1.我一直在尝试在新的 mac m1 中安装 azure cli。 But it fails.
但它失败了。 I get the following error
我收到以下错误
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
After Pouring it just stops.浇完之后就停了。 I also tried to install using pip3 and I can install that successfully but when I type "az" command I get the following error
我也尝试使用 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 "$@"
As mentioned in the comments: My python3 wasn't installed via brew.正如评论中提到的:我的 python3 不是通过 brew 安装的。 So first uninstalled brew and python3.
所以首先卸载了brew和python3。 Then installed brew again(before that made sure Rosetta 2 is working).
然后再次安装 brew (在此之前确保 Rosetta 2 正在工作)。 Then tried brew doctor.
然后尝试了brew医生。 There was error saying /usr/... then, I deleted those files.
有错误说 /usr/... 然后,我删除了这些文件。 Once successfully removed/deleted brew doctor will run fine.
一旦成功删除/删除 brew doctor 将运行良好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.