终端打开.bash_profile文件
open ~/.bash_profile
修改.bash_profile文件内容
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
添加别名
alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7"
终端中重新读取.bash_profile文件
source ~/.bash_profile
网友评论