打开终端输入:vim ~/.bash_profile

按一下i,表示插入,然后输入
如当前将/Users/bingjiang/Library/Python/3.8/bin加入PATH,输入如下命令:
export "PATH=/Users/bingjiang/Library/Python/3.8/bin:$PATH"

按下键盘左上角的Esc 键退出编辑,然后按: 输入wq 保存即可退出
通过source ~/.bash_profile 重新加载一下,over
原文:https://www.cnblogs.com/tahitimoon/p/15092784.html