mac下同時存在Python2.7和Python3.5 ?打開終端默認選擇Python3.5 步驟
1稽坤、終端打開.bash_profile文件
open ~/.bash_profile
2操灿、更改.bash_profile文件
增加一行:alias python="/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5"
注:特別注意雙引號問題 ? 效果圖如下
3、重新編譯.bash_profile文件
source .bash_profile
4眯勾、再次查看Python版本
python