MacOs Catalina Python 设置path 新版电脑设置方法不同

mac新版使用的 .zshrc

vim .zshrc
# Setting PATH for Python 3.8
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"
export PATH
alias python="/Library/Frameworks/Python.framework/Versions/3.8/bin/python3"

保存就好了