There does appear to be some related topics on this issue, but not quite the same as mine.
I’ve been using PlatformIO now for months without this problem which began last Monday. I spent the entire day trying to get to the bottom of it. I was up and running again by the end of the day, but not really sure what what caused the problem to begin with.
Now it’s the following Monday morning and I’m having the same problem again:
I launch Visual Studio Code. In the output window, it says “Installing PlatformIO Core…
Please do not close this window and do not open other folders until this process is completed.”
I can see in the bottom ribbon “PlatformIO: Installing PlatformIO IDE…” but never successfully completes. Eventually I am asked to provide the path to python, which I do. But even that does not help.
So, why is this happening? Is something being pushed down over the weekends? Is there a setting that I can prevent this?
That wasn’t quite sufficient. Last week, I had removed all versions of Python on my system, then reinstalled Python 2.7 directly under C:. I noticed this morning that the reinstallation of PlatformIO was also installing version 3.7 under the .platformio subdirectory.
So I uninstalled platformio again. Uninstalled all versions of python as I only need it for platformio. Reinstalled platformio. Updated my system level path to point to python.exe under the .platform directory.