sublime配置python双执行环境
- 新建配置文件:
Tools->Build System->New Build System - 输入以下内容
{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "D:\\Python27\\python2.exe -u \"$file\"", #python的安装位置
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
- 保存命名为python2
- 同理配置python3