打开Terminal查询安装路径
which python3
变更权限sudo su
输入密码新增档案touch .bash_profile
开启档案touch .bash_profile
编辑档案内容# Setting PATH for Python 3.7# The original version is saved in .bash_profile.pysavePATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"export PATHalias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7"
更新档案touch .bash_profile
测试结果