构建Python3构建系统以在MacOS终端中运行py文件

时间:2018-04-15 01:11:50

标签: python-3.x macos terminal sublimetext3

我使用以下代码在ST3中构建了一个python3系统。

{
    "shell_cmd": "python3 -u \"$file\"",
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python",

    "env": {"PYTHONIOENCODING": "utf-8"},

    "variants":
    [
        {
            "name": "Syntax Check",
            "shell_cmd": "python3 -m py_compile \"${file}\"",
        },

            "name": "Run in cmd",
            "shell_cmd": "start cmd /c \"python3 ${file} & pause\"",
        }
    ]
}

但是当我选择" Build with"并运行"在cmd"中运行,发生错误:

screen shot of command error

我可以知道如何修改构建系统,以便我可以在终端中运行py文件吗?

0 个答案:

没有答案
相关问题