MAC修改python3命令为py

1, 找到python3安装路径

在这里插入图片描述

2, vi ~/.bash_profile

3, 增加内容:

alias py=“/usr/bin/python3”

4, 重载source ~/.bash_profile

5,执行py

在这里插入图片描述

你可能感兴趣的:(mac,python)