简体   繁体   English

Sublime text 3 未构建 python 文件

[英]Sublime text 3 not building a python file

I am trying to build (Ctrl+B) a python (2.7 or 3) file in sublime text 3 in Ubuntu and I am expecting it to show some message at the bottom like我正在尝试在 Ubuntu 的崇高文本 3 中构建(Ctrl+B)python(2.7 或 3)文件,我希望它在底部显示一些消息,例如

[ Finished in 1.2 s ] [ 1.2 秒内完成 ]

But it is showing nothing.但它什么也没显示。 I even reinstalled the sublime text after completely removing it but it still is not working.我什至在完全删除它后重新安装了崇高文本,但它仍然无法正常工作。 I tried to make a new build system for Python3 but building with that too shows nothing.我试图为 Python3 制作一个新的构建系统,但用它构建也没有显示任何内容。 Here is the build system I have (Python3)这是我拥有的构建系统(Python3)

{
    "shell_cmd": "/usr/bin/env python3 ${file}",
    "selector": "source.python",
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "working_dir": "${file_path}"
}

Other build systems which I have like for c++11 are working fine.我喜欢的 c++11 的其他构建系统运行良好。 Also I can use python2.7 as well as python3 in my terminal.我也可以在终端中使用 python2.7 和 python3。

This answer was posted as an edit to the question Sublime text 3 not building a python file by the OP Sunil Kumar under CC BY-SA 3.0.这个答案是作为对问题Sublime text 3 not building a python 文件编辑,由 OP Sunil Kumar在 CC BY-SA 3.0 下发布。

Thanks to @math2001's comment I realized that first line in my codes were user input and so it was waiting for user to type the input.感谢@math2001 的评论,我意识到我的代码中的第一行是用户input ,因此它正在等待用户输入输入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM