当前位置:   article > 正文

mac安装python2.7_Mac 上安装Python2.7和Python3

mac安装python2.7

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/756080
推荐阅读
相关标签
  

闽ICP备14008679号