mac python 切换系统默认版本

1 找到所安装python路径/usr/local/Cellar/python/2.7.13/bin
2 vim ~/.bash_profile
3 添加如下代码:
PATH="/usr/local/Cellar/python/2.7.13/bin:${PATH}"
export PATH
4 保存退出 ,
5 source ~/.bash_profile

posted @ 2017-03-23 18:38  xqnq2007  阅读(2058)  评论(0编辑  收藏  举报