Mac上pyenv的安装及使用
安装
brew update
brew install pyenv
报错
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
那就执行这2句
还报错
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
remote: Enumerating objects: 365476, done.
remote: Counting objects: 100% (365455/365455), done.
remote: Compressing objects: 100% (147319/147319), done.
fatal: The remote end hung up unexpectedly12 MiB | 9.00 KiB/s
fatal: early EOF
fatal: index-pack failed
需要换源
参考 https://blog.csdn.net/u013549582/article/details/120887331
## 更新 homebrew-cask(如果提示 No such file or directory 可以先跳过前三个命令)
cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
# 更换源
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
# 更新
git fetch --unshal