github官方源連不上
科大源,阿里雲源都太慢,阿里雲還容易出錯
用清華源好
成功安裝brew後,輸入如下命令:
1、官網brew.sh複製安裝指令碼。
3、更換homebrew
cd "$(brew --repo)" git remote set-url origin cd "$(brew --repo)/library/taps/homebrew/homebrew-core" git remote set-url origin brew update
更換homebrew-bottles (長期換源)
# brew.git映象源
git -c "$(brew --repo)" remote -v
# homebrew-core.git映象源
git -c "$(brew --repo homebrew/core)" remote -v
# homebrew-cask.git映象源
git -c "$(brew --repo homebrew/cask)" remote -v
git -c "$(brew --repo)" remote set-url origin
git -c "$(brew --repo homebrew/core)" remote set-url origin
git -c "$(brew --repo homebrew/cask)" remote set-url origin
if [ $shell = "/bin/bash" ] # 如果你的是bash
then
echo 'export homebrew_bottle_domain=' >> ~/.bash_profile
source ~/.bash_profile
elif [ $shell = "/bin/zsh" ] # 如果用的shell 是zsh 的話
then
echo 'export homebrew_bottle_domain=' >> ~/.zshrc
source ~/.zshrc
fibrew update
git -c "$(brew --repo)" remote set-url origin
git -c "$(brew --repo homebrew/core)" remote set-url origin
git -c "$(brew --repo homebrew/cask)" remote set-url origin
# 找到 ~/.bash_profile 或者 ~/.zshrc 中的homebrew_bottle_domain 一行刪除
brew update
brew doctor
brew update-reset
brew update
推薦閱讀:有趣的 homebrew 命名
echo 'export homebrew_bottle_domain=' >> ~/.bash_profile source ~/.bash_profile
pip conda使用清華源
anaconda的安裝步驟不在本文的討論中,我們主要是學習一下如何配置conda的映象,以及一些問題的解決過程 在conda安裝好之後,預設的映象是官方的,由於官網的映象在境外,我們使用國內的映象能夠加快訪問的速度。這裡我選擇了清華的的映象。映象的位址如下 點我進入tuna 在命令列中執行 cond...
python使用豆瓣 清華源安裝
python開發的時候需要安裝各種模組,而pip是很強大的模組安裝工具,但是由於國外官方pypi經常被牆,導致不可用,所以我們最好是將自己使用的pip源更換一下。清華大學的pip源,它是官網pypi的映象,每隔5分鐘同步一次,位址為 設為預設 公升級 pip 到最新的版本 10.0.0 後進行配置 ...
Linux替換清華源
1.備份原來的原始檔 cd etc apt 輸入命令 sudo cp sources.list sources.list.bak就是將sources.list被分到sources.list.bak 2.替換源 sudo gedit sources.list刪除原來的所有內容,替換成清華或者阿里的源。...