【MAC】brew install XXX一直卡在Updating Homebrew…的解决办法
运行命令brew install pip3,结果界面一直卡在Updating Homebrew…上
解决办法是替换brew源:
替换brew.git:
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
重置brew.git:
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
重置homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
本文介绍了解决在Mac上使用brew安装软件时遇到的卡在Updating Homebrew问题的方法。通过更换为国内镜像源,可以有效提升brew的更新速度及稳定性。
1万+

被折叠的 条评论
为什么被折叠?



