Issue while installing on vscode

There exist an issue with installing the PlatformIO on vscode.

The issue is that Platformio requires an obsolete version (3.6) of Python3 and doesn’t allow to install on a systems with a newer version is installed.

Please urgently fix it

What? The latest PlatformIO core supports Python 3.13. That came out only last week (7th of October). You can use the latest stable Python release with PlatformIO. Where is a Python version of 3.6 forced? What’s the error message here?

I myself am running PlatformIO on Python 3.11 just fine.

>pio system info
--------------------------  ------------------------------------------------------------------------------------
PlatformIO Core             6.1.16
Python                      3.11.4-final.0
System Type                 windows_amd64
Platform                    Windows-10

And PlatformIO’s CI is running on Python 3.9 just fine, too. So, the last 4 years of Python release up to the latest one is supported. There should be zero issues.

Strange… I had just downloaded a fresh vscode and in it the Platformio extension and I get the prompt that it requires Python 3.6+, even if I have Python3.12 already installed.

Recieved message:

PlatformIO: Can not find working Python 3.6+ Interpreter. Please install the latest Python 3 and restart VSCode

Try to use the installer script to install the core.

https://docs.platformio.org/en/latest/core/installation/methods/installer-script.html#super-quick-macos-linux

Note that this requires, on Linux systems,

sudo apt install python3-venv

See

1 Like

It worked, thanks. It would be great if on the page with installation instructions and in the INSTALL file would be listed the required packages to make it work :wink:

Right now it’s only documented in

https://docs.platformio.org/en/latest/integration/ide/vscode.html#installation

https://github.com/platformio/platformio-docs/issues