赞
踩
1 安装Xcode
xcode-select --install
2 安装Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
清华大学镜像
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
3 安装Python
接下来要正式进入安装Python的步骤了!
首先,输入
python --version
打印出 Python 2.7.10 ,是mac自带的,不需要卸载
开始安装:
利用homebrew搜索Python
brew search python
会有如下结果:
app-engine-python gst-python python ✔ wxpython
boost-python ipython python-markdown zpython
boost-python3 ipython@5 python-yq
boost-python@1.5
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。