【发布时间】:2019-12-09 09:04:20
【问题描述】:
脚本我在 atom 上使用这个包。
收到此错误
[Command: python3 -u '/home/aditya/Documents/python/py4e book solved problems/not done py4e 5.10ex q1 loop.py']
更改后。 [/home/aditya/.atom/packages/script/lib/grammars]我把python改成了python3
exports.Python =
'Selection Based':
command: 'python3'
args: (context) -> ['-u', '-c', context.getCode()]
'File Based':
command: 'python3'
args: ({filepath}) -> ['-u', filepath]
【问题讨论】:
-
欢迎来到 SO!请阅读minimal reproducible example 并相应地编辑您的帖子,此外还可以为您的问题添加一些上下文,例如您尝试过什么?你得到什么错误?你想达到什么目的?预期什么等等。
-
@Aditya singh 我不知道我是否正确理解了您的问题。但我想你不能通过 ubuntu 上的 atom 运行你的 python 脚本?
-
是的,我无法在 atom 中运行 python3
标签: python python-3.x python-2.7 atom-editor ubuntu-18.04