python - 在atom中运行python

标签 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 包来运行代码。

最佳答案

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

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

关于python - 在atom中运行python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51354344/

相关文章:

javascript - 无法使用脚本包在 Atom 中运行 JavaScript

css - Atom/Electron 开发者工具主题

Python mmap ctypes - 只读

atom-editor - 在 Atom 编辑器中 : How to remain inside sidebar focus while navigating through tree using arrowskeys

html - Atom 文本编辑器只在 html 中写入 "highter than"符号而不是冒号?

atom-editor - 为新文件设置默认语言

python - 如何从 PNG 图像中删除第 4 个 channel

python - 如何使用 python 从应用程序引擎向我的 facebook 应用程序墙写帖子?

python - 带有 SQLAlchemy 的 Db2,如何指定默认模式

python - Spark使用前一行的值将新列添加到数据框