系统版本:Mac OS10.13.4
默认的python版本是2.7 ,具体路径在:/System/Library/Frameworks/Python.framework/Versions/2.7;
安装新版本:vim ~/.bash_profile
alias python="<安装python的版本路径>/bin:$PATH" ;
例如我使用Anaconda路径:export PATH="/Users/yyx/anaconda3/bin:$PATH"
:wq 保存修改; 最后 soucre ~/.bash_profile 更新文件;
网友评论