简体   繁体   English

如何在Linux上配置Python环境?

[英]How to configure Python environment on Linux?

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?我想在 kubuntu 上配置 python3.10 但只能在终端中运行,当 visual studio 代码尝试 python 无法从 file.py 运行 python3 时,仅使用终端,我想使用 python3 文件名从 visual studio 代码的终端执行 python。 py,我该怎么办?

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

The label on the right is a small circle, indicating that you have not saved the file.右边的label是一个小圆圈,说明你还没有保存文件。

You can "ctrl+s" to save it, or the file read by the terminal was blank.可以“ctrl+s”保存,否则终端读取的文件是空白的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM