- 安裝: https://www.python.org/downloads/
- 打開終端蚕苇,輸入which python3,查看路徑
- 打開配置文件
vim ~/.bash_profile
- 重命名Python
alias python="/Library/Frameworks/Python.framework/Versions/3.9/bin/python3"
- 保存文件
- 終端執(zhí)行命令:
source ~/.bash_profile
- 查看python版本
python -V