在atom中运行python

时间:2018-07-16 03:50:27

标签: python atom-editor


我试图在原子编辑器中运行python,但是每次尝试运行代码时,我都会得到以下信息:

[Command: python -u C:\Users\destinee\Documents\pythonProjects\Testing.py]
'python' is not recognized as an internal or external command,
operable program or batch file.
[Finished in 0.056s]

这是我输入的代码:

# this is a test
name = Destinee
print("hi")
print(name)

**我不知道是否需要这样说,但我使用的是scprit软件包来运行代码。

1 个答案:

答案 0 :(得分:1)

Python解释器不在您的PATH上。要么添加它,要么在Atom的配置中使用Python可执行文件的绝对路径。

如果您可以设置venv,则可以尝试从venv内部启动Atom。