全局配置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!

posted @ 2021-09-23 15:37  成强  阅读(444)  评论(0编辑  收藏  举报