Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
升华文本2 Python问题。Python在路径中,可以通过cmd编译_Python_Python 2.7_Path_Cmd_Sublimetext2 - Fatal编程技术网

升华文本2 Python问题。Python在路径中,可以通过cmd编译

升华文本2 Python问题。Python在路径中,可以通过cmd编译,python,python-2.7,path,cmd,sublimetext2,Python,Python 2.7,Path,Cmd,Sublimetext2,您好,我是Python新手,正在尝试入门 问题: 我有Sublime Text 2,在运行一些简单的代码时遇到问题 我有: Python已安装@C:\Program Files\Python\Python 278 代码为@C:\Users\Computer\Desktop\Learning Python的工作文件夹 代码为:ex1.py 我已经将Python添加到我的环境变量中(包括用户变量和系统变量) 我的升华是为Python设置的 这是我的密码: 打印“Yo” 当我尝试构建时,我得到: [E

您好,我是Python新手,正在尝试入门

问题: 我有Sublime Text 2,在运行一些简单的代码时遇到问题

我有: Python已安装@C:\Program Files\Python\Python 278

代码为@C:\Users\Computer\Desktop\Learning Python的工作文件夹

代码为:ex1.py

我已经将Python添加到我的环境变量中(包括用户变量和系统变量)

我的升华是为Python设置的

这是我的密码:

打印“Yo”

当我尝试构建时,我得到:

[Error 2] The system cannot find the file specified
[cmd:  [u'g++', u'C:\\Users\\Computer\\Desktop\\Learning Python\\ex1.py', u'-o', u'C:\\Users\\Computer\\Desktop\\Learning Python/ex1']]
[dir:  C:\Users\Computer\Desktop\Learning Python]
[path: ...;C:\Program Files\Python\Python 278]
[Finished]
我可以从powershell和cmd运行python。

我必须再次强调,在cmd中键入python将启动python解释器

我甚至改变了Python.sublime-build

“cmd”:[“C:\Program Files\Python\Python 278\Python.exe”、“-u”、“$file”]

“file_regex”:“^[]file\”(…?)\”,第([0-9]*)行

“选择器”:“source.python”

“cmd”:[“C:\Program Files\Python\Python 278\Python.exe”、“-u”、“$file”]

“file_regex”:“^[]file\”(…?)\”,第([0-9]*)行

“选择器”:“source.python”

原来是这样

“cmd”:[“python”、“-u”、“$file”]

“file_regex”:“^[]file\”(…?)\”,第([0-9]*)行

“选择器”:“source.python”

请帮忙。我在这个问题上花了7个多小时,我确信我错过了一些愚蠢的事情

非常感谢您的时间和帮助

好吧,我太笨了

我看到了:

我想我将构建系统设置为Python。 不


请使用工具->构建系统->Python

您的编辑器正在尝试编译该文件,请尝试找到一个选项对其进行更改,以便将该文件视为py@BartlomiejLewandowski什么意思?