VSCode terminal problem $python3 app.py - zsh: command not found: app.py

I was learning Python on Pycharm but I switched to VSCode for this course. Unfortunately, I can not use my VSCode Terminal. I installed Python 3.9 properly and then installed VSCode. I am able to use VSCode output window with code runner but I cannot use my terminal window so I can’t get any input since code runner lets read only.
I am on MacOS 10.15.7 Catalina.
Here is my problem:
$python3 app.py
zsh: command not found: app.py


1 Like

Did you type the “$”? It’s part of the standard prompt and nothing you type.

OMG, I have the same issue too. I am so confused.

Don’t type the “$”!

It works! But why Mosh has the “$” when he didnt type it?

If I didnt type one, my terminal won’t have the “$” sign.

It’s part of the prompt. And it’s part of your prompt, too!


Awwwww! Now I got it! Thank you!

I just started the course, am brand new to programming. Have a PC and having same problem whether I use $ sign or not. Can someone pls help?

Looks like you haven’t installed Python yet or didn’t add it to your PATH.

Thank you for your help, Sam. It didn’t work for me I still get an error when I type python3 app.py whether I type $ sign or not; However, whatever I did, unfortunately I don’t really know what I did, my terminal window works when I run my program.

You are on Windows. The executable on windows is python, not python3.

You should never type a $ in front of an executable name.

So your problem is solved?

Hi Sam, I had installed python and ticked the path box. I reinstalled it but this time from the Microsoft store and this time its all working. Thanks for your help and responding. Frank

Please how can I add python to the path because I’m having the same problem

I’m on Mac.
For your question: Yes and No. My problem has solved for some cases like I can use my terminal and get input for most of the cases but I still get command not found error often when I go through videos.
zsh: command not found: pipenv

Follow the instructions I provide on this post:

If you are coding in mac, on the terminal type ‘python3’ (without the ‘’) and you should see the version you have installed. If no version appears, you have to uninstall Python3 and install but ADDING PYTHON TO THE PATH! it’s on the first screen of the installer.

Let me know how it goes.