1、mac 系统自带的是 Python2,但是为了安装最新最稳定的官方版本,需要安装python3。
2、安装Ralis的时候,系统中已经有xcode, 在终端运行,xcode-select --install 安装命令行工具。
3、用brew 安装的rails,现在只需要升级brew,在终端运行 brew update。
4、安装 Python3,运行 brew install python
5、检验系统安装 Python 是否成功,$python3
6、运行 Python代码
运行 print (『hello world』)
7、退出,快捷键 control+D 或是运行 exit()
网友评论