Mac输入 python 打开 python3

.bash_profile 加入此配置
echo 'alias python="python3"' >> .bash_profile

调用 source ~/.bash_profile 生效配置

打开 open .zshrc 添加 source ~/.bash_profile

调用 source ~/.bash_profile 生效配置

posted @ 2023-08-09 11:59  lambertlt  阅读(43)  评论(0编辑  收藏  举报