Useful or not, from you.
platformio-vscode-ide Error: Could not create PIO Core Virtual Environment


Thanks for the report! We rewrote PlatformIO Core installer from the scratch. Please download and install the latest PlatformIO IDE for VSCode 2.0 Beta as described in Try Beta section on that page.

Please respond to this thread if it helped you or you still have an issue. We will reopen this issue again.

Regards, Your friends at PlatformIO

That's a useful answer
Without any help

In addition trying to install platformio in VScode

notificationsAlerts.ts:40 Error: Could not create PIO Core Virtual Environment. Please create it manually -> Error: Virtualenv Create: Traceback (most recent call last): File "/home/drum/.platformio/.cache/tmp-5617nrKRkQBJVvbv/virtualenv-16.7.5/", line 24, in <module> import distutils.spawn ModuleNotFoundError: No module named 'distutils.spawn' at t.value (/home/drum/.vscode/extensions/platformio.platformio-ide-1.9.0/node_modules/platformio-node-helpers/dist/index.js:1:31671)

2 other errors from console ERR Cannot read property 'stack' of undefined: TypeError: Cannot read property 'stack' of undefined at t.catch.t (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:787:786)

ERR connect ECONNREFUSED Error: connect ECONNREFUSED at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)

Let me know if there is anything else I can send.