全局配置Python环境变量
sudo su
vim /etc/zprofile
插入
# Setting PATH for Python 3.9.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}"
export PATH
alias python="/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9"
esc WQ!