首页 > 其他 > 详细

brew 源 & pip 源

时间:2017-08-03 09:20:03      阅读:386      评论:0      收藏:0      [点我收藏+]

brew源: https://www.zhihu.com/question/31360766

摘要

1. 替换formula 索引的镜像(即 brew update 时所更新内容)

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

  

2. 替换Homebrew 二进制预编译包的镜像

echo ‘export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles‘ >> ~/.bash_profile
source ~/.bash_profile

  

 

pip源[ustc]

https://lug.ustc.edu.cn/wiki/mirrors/help/pypi

[global]
index-url = https://mirrors.ustc.edu.cn/pypi/web/simple
format = columns

  

brew 源 & pip 源

原文:http://www.cnblogs.com/Tommy-Yu/p/7277851.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!