Trouble running programmes VScode

So, I was running through one of the online courses for Python on LinkedIn. The first step had me download the course from their GitHub. After doing this, I have tried to run the programmes however it seems that VSCode is trying to run them with python, I use a mac and it usually uses pythom3. I have also tried to run other programmes I have built but again they will not run. I have googled, and asked people about how to sort this however everything I have been told to do doesn’t work. This is what is written in the terminal after I have tried to run a programme.

[Running] python -u “/Users/samwestlake-cann/Documents/Python learning/HelloWorld/Training/app2.py/find_max.py”

/bin/sh: python: command not found

[Done] exited with code=127 in 0.008 seconds

[Running] python -u “/Users/samwestlake-cann/Documents/Python learning/HelloWorld/Training/app2.py/find_max.py”

/bin/sh: python: command not found

[Done] exited with code=127 in 0.008 seconds

This is really starting to bug me as I am unable to work on any of my programmes due to this. Please any help is desperately needed.

Thank you

The easiest thing you can probably do is set up and alias so that python runs python3:

alias python=python3

and put that in your environments .rc file (.bashrc or .zshrc most likely.)

Alternatively you can symlink it but that’s a tad more complicated.

In VSCode do, Command + Shift + p. Select the python interpreter