Whenever I try to install PlatfromIO IDE on VS Code in Linux Mint I get this error:
Error: Error: Can not install PlatformIO Core due to a missed venv module in your Python installation. Please install this package manually using the OS package manager. For example: $ apt-get install python3-venv (MAY require administrator access sudo) → Installer version: 1.2.0 Platform: Linux-5.15.0-76-generic-x86_64-with-glibc2.35 Python version: 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] Python path: /usr/bin/python3 Creating a virtual environment at /home/joshindigo/.platformio/penv at /home/joshindigo/.vscode/extensions/platformio.platformio-ide-3.3.0-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5300 at ChildProcess.i (/home/joshindigo/.vscode/exten…
I already have python3-vevn installed so I’m unsure as to what the issue would be.
I am also facing this issue. I am using Linux Mint 21.2. I have multiple version of python installed. As mentioned in previous comment, both ensurepip and venv commands are working.
Yes both help commands work. So far it looks like I may have fixed the problem by reinstalling VSCode using a flatpack but now I need to see if the extension is able to run correctly.
Yes. So far I’ve managed to get the extension to install by reinstalling VSCode with a flatpack but now I need to see if the extension can run tasks such as building and uploading normally.
Hmmm. I’ve been using PlatformIO for ages, and today, in VSCode, it decided to upadate as it has done previously with no problems.
After a while I get a message “PlatformIO cannot find a working Python3.6+ interpreter. Please install the latest Python 3 and restart VSCode.”.
I check, python --version which returns 3.10.6. Seems fine. whereis python returns /usr/bin/python.
I’m offered a button, “I have python” so I click it and type in /usr/bin/python when prompted. After a pause, we go back to the start saying there’s no python. If I ignore the popup it vanishes and the Platform IO update hangs.
I haven’t updated Python recently. VSCode updated a week ago, it seems from this:
And, on opening VSCode, the upgrade finishes. It looks like Linux MInt (Ubuntu and/or Debian also perhaps?) need to install the package python3.xx-venv in order to get the latest PlatformIO to install.