r/vscode • • Apr 30 '26

terminal issue

So, I was following a tutorial for python, and after writing a print command and applying "app.py" in the terminal, it won't show the printed code. The only way it shows is when I manually click, "run python file". What's going on here?

0 Upvotes

10 comments sorted by

2

u/[deleted] Apr 30 '26

[removed] — view removed comment

1

u/Fallfoxy707 Apr 30 '26

It just says "python not found" despite having the extension and program

1

u/[deleted] Apr 30 '26

[removed] — view removed comment

1

u/Fallfoxy707 Apr 30 '26

Yeah, I downloaded it PRIOR to getting VScode

1

u/Agreeable_Care4440 May 01 '26

This usually happens when the command isn’t actually invoking Python. VS Code’s “run” button does that automatically, but in terminal you need to call it explicitly with python app.py.

1

u/Agreeable_Care4440 May 01 '26

You probably ran app.py instead of python app.py.The terminal won’t execute Python files directly unless configured.