Mac输入 python 打开 python3

lambert's blog / 2023-08-09 / 原文

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

调用 source ~/.bash_profile 生效配置

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

调用 source ~/.bash_profile 生效配置