Mac输入 python 打开 python3

发布时间 2023-08-09 12:01:18作者: lambertlt

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

调用 source ~/.bash_profile 生效配置

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

调用 source ~/.bash_profile 生效配置