安裝home-brew https://brew.sh/index_zh-cn
https://blog.csdn.net/fxp850899969/article/details/53284193
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
替換home-brew
# 替換brew.git:
$ cd "$(brew --repo)"
# 中國科大:
$ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
# 清華大學:
$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
# 替換homebrew-core.git:
$ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
# 中國科大:
$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
# 清華大學:
$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
# 替換homebrew-bottles:
# 中國科大:
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
$ source ~/.bash_profile
# 清華大學:
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
$ source ~/.bash_profile
# 應用生效:
$ brew update
安裝python3 https://www.cnblogs.com/meng1314-shuai/p/9031686.html
brew search python3 搜索
brew install python3
安裝pip3
curl https://bootstrap.pypa.io/get-pip.py | python3
pip --version
安裝virtualenv
sudo pip install virtualenv
sudo pip install virtualenvwrapper
vi ~/.bash_profile
將一下內容放入文件最後
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
運行
source ~/.bash_profile
Git
brew install git
永久記住密碼
git config --global user.name "wenbo"
git config --global user.email "[email protected]"
Mysql
brew install mysql
Redis
brew install redis
下載mac版Pycharm