如何在Sublime Text3中设置python3 REPL

时间:2017-03-24 17:40:06

标签: windows-10 sublimetext3 python-3.6

所以我尝试了一个新创建的文件:
python3.sublime-build使用以下代码

{
  "cmd": ["C:\Users\AA\AppData\Local\Programs\Python\Python36-32\python.exe", "$file"], 
  "selector": "source.python", 
  "file_regex": "file \"(...*?)\", line ([0-9]+)"
}

使用以下方法修改Main.sublime菜单:

{"command": "repl_open",
                    "caption": "Python3 - RUN current file",
                    "id": "repl_python_run",
                    "mnemonic": "p",
                    "args": {
                        "type": "subprocess",
                        "encoding": "utf8",
                        "cmd": ["python3", "-u", "$file_basename"],
                        "cwd": "$file_path",
                        "syntax": "Packages/Python/Python.tmLanguage",
                        "external_id": "python",
                        "extend_env": {"PYTHONIOENCODING": "utf-8"}
                            }
                    },

但是,当我运行

  

工具> SubimeREPL> Python> Python3 - 运行当前文件

从Sublime Text3菜单栏中,我收到了:

  

“FileNotFoundError(2,'系统无法找到该文件   specified.'None'2)“

我不知道我错过了什么。

0 个答案:

没有答案