mac python环境变量
编辑文件
vi ~/.zshrc 点i编辑
加入
PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:${PATH}"
export PATH
alias python="/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11"
esc后:wq保存并退出
执行文件
source ~/.zshrc
验证
python --version