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
本文介绍如何配置pip和brew使用清华大学的镜像源,以加快Python包和Homebrew软件的安装速度。通过简单的步骤修改配置文件,可以显著提高下载效率。
1万+

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



