Python3.7.8安装包
Windows-x64版:python-3.7.8-amd64.exe.zip
MacOS版:python-3.7.8-macosx10.9.pkg
VSCode安装包
Windows-x64版:VSCodeUserSetup-x64-1.47.3.exe.zip
MacOS版:VSCode-darwin-stable.zip
iTerm2安装包
MacOS专用:iTerm2-3_3_12.zip
Homebrew安装
MacOS专用:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
把更新源改为国内源,比如清华:
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
git -C "$(brew --repo homebrew/cask-fonts)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-fonts.git
git -C "$(brew --repo homebrew/cask-drivers)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-drivers.git
brew update
重新复原为官方源:
git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git
git -C "$(brew --repo homebrew/cask-fonts)" remote set-url origin https://github.com/Homebrew/homebrew-cask-fonts.git
git -C "$(brew --repo homebrew/cask-drivers)" remote set-url origin https://github.com/Homebrew/homebrew-cask-drivers.git
brew update
MacOS上Python多版本
安装pyenv多版本管理工具:
brew update
brew install pyenv
pyenv install 3.7.6
pyenv versions
安装virtualenv,方便创建虚拟Python环境。
brew update
brew install pyenv-virtualenv
pyenv virtualenv SOME_NAME