Mac上设置SublimeREPL插件默认运行python3

本文参考:https://www.cnblogs.com/keithtt/p/6919417.html

1、修改Main.sublime-menu文件

Users/xxx/Library/Application\ Support/Sublime\ Text\ 3/Packages/SublimeREPL/config/Python/Main.sublime-menu

Mac上设置SublimeREPL插件默认运行python3_第1张图片

 

2、修改cmd命令,将python改成python3

Mac上设置SublimeREPL插件默认运行python3_第2张图片 

$ sudo find / -iname 'Main.sublime-menu'
$ vim /Users/keithtt/Library/Application\ Support/Sublime\ Text\ 3/Packages/SublimeREPL/config/Python/Main.sublime-menu

"cmd": ["python3", "-i", "-u"],
"cmd": ["python3", "-i", "-u", "-m", "pdb", "$file_basename"],
"cmd": ["python3", "-u", "$file_basename"],
"cmd": {
    "osx": ["python3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
    "linux": ["python3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
    "windows": ["python3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"]
},

 

你可能感兴趣的:(Mac上设置SublimeREPL插件默认运行python3)