Sublime Text(启动“Hello Python world”时出现问题

问题描述 投票:0回答:1

看不到消息:(Hello Python world!)

我使用“Sublime Text”。 - 工具 - 构建系统 - 新构建系统:

"cmd": ["python3", "-u", "$file"],
- Tools - Build:
and then I see a message:
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3: can't find '__main__' module in...

有人可以帮忙吗?

我尝试更改命令,但没有帮助。

python sublimetext
1个回答
0
投票

当您的文件未保存时,Sublime Text 会引发此错误,它保持“无标题”。

以某个名称保存文件,它应该可以工作。

© www.soinside.com 2019 - 2024. All rights reserved.