Answering the question of the original poster about Python not found on VScode on Windows:
Just so you know. I installed the Platformio extension in VS code, installed platformio in Python too.
I had Python installed on my system AND installed platformio also in there with ‘pip install platformio’.
After running a project ( ‘platformio.exe run’) , i got an error message that said “Python was not found”
Immediately after that : OSError: ‘python3 git_rev.py’ exited 9009:
THIS STUPID TRICK FIXED IT!
As I noticed several people encountering the same error in Windows / VSCode , it dawned on me that it tries to run ‘python3.exe’, but python3.exe usually is present on Linux, but not on Windows.
So i copied python.exe to python3.exe, like so:
copy C:\Program Files\Python310\python.exe C:\Program Files\Python310\python3.exe
(making sure the python3.exe is also present in %PATH%)
Plz fix!