open ~/.bash_profile
每个版本路径自己调整
export PATH=${PATH}:/usr/local/Cellar/python@3.9/3.9.4/bin
alias python="/usr/local/Cellar/python@3.9/3.9.4/bin/python3.9"
export PATH="/usr/local/Cellar/python@3.9/3.9.4/bin:$PATH"
最后执行一下
source ~/.bash_profile
open ~/.bash_profile
每个版本路径自己调整
export PATH=${PATH}:/usr/local/Cellar/python@3.9/3.9.4/bin
alias python="/usr/local/Cellar/python@3.9/3.9.4/bin/python3.9"
export PATH="/usr/local/Cellar/python@3.9/3.9.4/bin:$PATH"
最后执行一下
source ~/.bash_profile
本文标题:Mac 修改python 版本
本文链接:https://www.haomeiwen.com/subject/abdjrltx.html
网友评论