Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/292.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
Atom运行程序错误[Python]_Python_Atom Editor_Atom Runner - Fatal编程技术网

Atom运行程序错误[Python]

Atom运行程序错误[Python],python,atom-editor,atom-runner,Python,Atom Editor,Atom Runner,当我尝试使用Atom runner执行时,一行非常简单的命令如下 print("Hello World") 我有一个错误: Unable to find command: python Are you sure PATH is configured correctly? ENV PATH: C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\C:\Users\alvar\AppData\Roaming\Microsof

当我尝试使用Atom runner执行时,一行非常简单的命令如下

print("Hello World")
我有一个错误:

    Unable to find command: python
Are you sure PATH is configured correctly?

    ENV PATH: C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\C:\Users\alvar\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\alvar\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6\Python 3.6 (64-bit);C:\Users\alvar\AppData\Local\Microsoft\WindowsApps;

    Error: spawn python ENOENT
        at exports._errnoException (util.js:1026:11)
        at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
        at onErrorNT (internal/child_process.js:359:16)
        at _combinedTickCallback (internal/process/next_tick.js:74:11)
        at process._tickCallback (internal/process/next_tick.js:98:9)

我有Python 3.6,请帮忙。谢谢。

在我的例子中,如果您使用的是atom python run包,您必须设置python可执行路径

C:\Python3.5\python.exe "{file}" 

确保您的Python位置在您的路径中。只需谷歌“改变路径”+你的操作系统



PATH变量有点像你告诉计算机所有的地方去寻找它是否需要找到什么。如果它在那些地方找不到任何东西,它就会放弃。向路径中添加一个位置只是给它另一个位置来查找内容。

您确定路径配置正确吗?