1. 通过terminal打开配置文件
vi ./.bash_profile
2. 输入你想配置的环境变量地址
export PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:$PATH"
3. 让环境变量生效
source ./.bash_profile
4. 查看所配置的环境变量
echo $PATH
GameOver
下面图片仅做参考:
vi ./.bash_profile
export PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:$PATH"
source ./.bash_profile
echo $PATH
下面图片仅做参考: