如何在Linux上配置Python环境?

发布于 2025-02-02 08:00:29 字数 496 浏览 1 评论 0原文

我想在Kubuntu上配置Python3.10,但是只能在终端运行时,当Visual Studio代码尝试Python无法从File .Py运行Python3,而只需使用终端,我想使用python3 filename从Visual Studio Code中执行Python。 PY,我该怎么办?

”在此处输入图像说明”

i want to configure python3.10 on kubuntu but only can run in terminal, when visual studio code try python can't run python3 from file .py, just using terminal, i want executing python from terminal of visual studio code using python3 fileName.py, what should i do?

enter image description here

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

妥活 2025-02-09 08:00:29

右侧的标签是一个小圆圈,表明您尚未保存文件。

您可以“ ctrl+s”保存它,或者终端读取的文件为空白。

enter image description here

The label on the right is a small circle, indicating that you have not saved the file.

You can "ctrl+s" to save it, or the file read by the terminal was blank.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文