1. 查看python版本

python3 -V

2. 更新python版本

brew upgrade python

3. 查看python3的路径

which python3

4. 修改.bash_profile文件

vim ~/.bash_profile
alias python="/usr/local/bin/python3"

5. 应用环境变量

source ~/.bash_profile

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注