blog icon indicating copy to clipboard operation
blog copied to clipboard

mac 升级 python 2.7 到 3.7+

Open wuweijia opened this issue 5 years ago • 0 comments

下载 apk

https://www.python.org/downloads/

修改终端配置

image 添加下面代码 到上图终端打开的文件中 alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7" 在终端中执行 source ~/.bash_profile

重启终端

输入 python 验证版本

image

wuweijia avatar Oct 14 '19 10:10 wuweijia