brew install --build-from-source python@3.9

Error: No such file or directory @ rb_sysopen - /Users/cosec/Library/Caches/Homebrew/downloads/499bfec82d3a827c7304f961c69ea97282a5356374fcda0d647b7d67a1d51547--ca-certificates-2021-09-30.arm64_big_sur.bottle.tar.gz

在使用Homebrew安装python3的时候,上面进度都正常

但是命令行最后提示类似这个的时候,修改Homebrew的镜像(阿里的)源即可解决

cd "$(brew --repo)"

git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"

git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

brew update

再执行

brew install --build-from-source python@3.9

命令即可成功