Invalid path to Python Interpreter

hope it’s ok to post this here.

When i tried to install pio i got the following error:

But I have already installed python.
And the python I have didn’t work for it.

C:/Users/exjang/AppData/Local/Microsoft/WindowsApps/PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0/python.exe or
I used a path like this, but I get an error message.
Do I need an old version of python to use pio? Or do I have to install the same version in duplicate?

Please do not hesitate to let me know if you have any additional information you need.

Yours faithfully




In another topic here I’ve also seen problems with the Microsoft-packaged version of the Python interpreter.

Is it possible that you can use the official Python from

I had absolutely no expectation that this would have to do with the problem.
But this worked for me!
I set environment variables and reinstalled python and vscode, but that didn’t work.
But the official python works fine. Thank you!