Unable to install PlatformIO

Hi, I am trying to install PlatformIO on my VS Code, but it keeps failing. I have tried on both Windows and Ubuntu.

This is the error code I get:

Error: error: subprocess-exited-with-error

Building wheel for platformio (pyproject.toml) did not run successfully.
exit code: 1

Building wheels for collected packages: platformio
Building wheel for platformio (pyproject.toml): started
Building wheel for platformio (pyproject.toml): finished with status ‘error’
Failed to build platformio

at c:\Users\garyf.DESKTOP-RILC1JD\.vscode\extensions\platformio.platformio-ide-3.3.3-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:5323
at ChildProcess.i (c:\Users\garyf.DESKTOP-RILC1JD\.vscode\extensions\platformio.platformio-ide-3.3.3-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:4621)
at ChildProcess.emit (node:events:519:28)
at ChildProcess.emit (node:domain:488:12)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)

Strange that you have the same error on two different systems.

Did you follow these instructions for the installation? PlatformIO IDE for VSCode — PlatformIO latest documentation

I have just switched to my Ubuntu machine, I was trying to get the Marlin extension installed, but this PlatformIO is preventing that from happening.

I have just taken a look at the link, I get to the install, but it fails to install on both Windows and Ubuntu. I have Python 3.11 on Ubuntu and Python 3.12 on Windows, the path on both is set.

This is another error I get, I did get this initially on Windows, but this is from my Ubuntu machine

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

Strangely, it installs as expected on my Mac. The Ubuntu and Windows machines is a dual boot, I am wondering if it may be a hardware issue.

Shame it still won’t build Marlin, but I think that is more to do with the code.