1、安装homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2、安装python3
brew install python
安装完成之后输入
which python3
查看安装路径,我的是
/usr/local/bin/python3
3、 安装python插件、code runner插件;
4、“Command + ,” 打开settings.json文件,添加以下配置:
{
# 输出到终端
"code-runner