1,pip
新建:
mkdir ~/.pip
cd ~/.pip
touch pip.conf
vim pip.conf
加入:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
2,brew
cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
brew update