I haven't used platformio for a while. When I suddenly used it today, I found that it couldn't be used and reported an error:
Ubuntu PlatformIO: Can not find working Python 3.6+ Interpreter. Please install the latest Python 3 and restart VSCode.
I checked online and found that many people have encountered it and they also gave solutions:
sudo apt-get install python3-venv
【Ubuntu vscode pio extension install: PlatformIO: Can not find working Python 3.6+ Interpreter】
【 Can not find working Python 3.6+ Interpreter #3764 】
【 Can not find Python Interpreter #1774 】