1、下载https://www.python.org/downloads/
2、打开并编辑 .bash_profile文件。
添加一行配置:
alias python="/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10"
3、source .bash_profile
4、终端运行:python,校验是否成功
1、下载https://www.python.org/downloads/
2、打开并编辑 .bash_profile文件。
添加一行配置:
alias python="/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10"
3、source .bash_profile
4、终端运行:python,校验是否成功
本文标题:Python3安装(Mac版)
本文链接:https://www.haomeiwen.com/subject/sryvfrtx.html
网友评论