Python 3.4 on Sublime Text 3

后端 未结 3 1538
悲哀的现实
悲哀的现实 2020-12-02 16:06

I followed these steps to run Python 3 on Sublime Text 3.

Select the menu Tools > Build > New Build System and I entered the following:

{
\"cmd\": [\         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 16:29

    You need to provide the full path to python3, since Sublime Text does not read your ~/.bash_profile file. Open up Terminal, type which python3, and use that full path:

    {
      "cmd": ["path/to/python3", "$file"], 
      "selector": "source.python", 
      "file_regex": "file \"(...*?)\", line ([0-9]+)"
    }
    

提交回复
热议问题