Set up Python 3 build system with Sublime Text 3

后端 未结 8 2166
青春惊慌失措
青春惊慌失措 2020-11-28 21:46

I want to configure Sublime Text 3 to build Python 3, but I don\'t seem to understand how the builds work. Many tutorials have told me to make a build file containing code s

8条回答
  •  醉梦人生
    2020-11-28 22:38

    And to add on to the already solved problem, I had installed Portable Scientific Python on my flash drive E: which on another computer changed to D:, I would get the error "The system cannot find the file specified". So I used parent directory to define the path, like this:

    From this:

    {
        "cmd": ["E:/WPy64-3720/python-3.7.2.amd64/python.exe", "$file"],
        "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
        "selector": "source.python"
    }
    

    To this:

    {
        "cmd": ["../../../../WPy64-3720/python-3.7.2.amd64/python.exe","$file"],
        "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
        "selector": "source.python"
    }
    

    You can modify depending on where your python is installed your python.

提交回复
热议问题