Platformio can't find python 3.6+ in Linux Mint 22, I have 3.12

Hello:

I have moved from Windows to Linux Mint 22, and installed VSCode 1.102 from a .deb package, then added some extensions I was using in the Windows environment, Namely (from Microsoft) the C/C++ compiler, the C/C++ Extension Pack, the C/C++ Themes, Cmake Tools Makefile Tools (Not sure I need both) The C/C++ Project Generator from danielpinto CMake utils, some others.

When I went to add the PlatformIO extention and got an error saying it couldn’t fine python 3.6+.

In VSCode, I opened a terminal, types python, and it loaded showinf I had v 3.12.3. So a newer version of python is already installed and in the path.

When attempting to start PlatformIO (by clicking on the alien head on the left bat,) it hangs at “Installing PlatformIO Core…”

I have found python 3.12 in both my /bin directory and the /usr/bin, (I don’t know why it’s in two places) both are in the path.

Please help,
Mark.

  1. Make sure the Python3 venv package is installed (usually sudo apt install python3-venv or similiar)
  2. Use the documented command to preinstall the PlatformIO core. Are there any errors?
  3. The VSCode extension should, after a restart, then find the core to be installed already.
  4. Don’t foget to also install udev rules for Linux, or you won’t be able to upload to devices as your normal user.
1 Like

That worked. Thanks, maxgerhardt.

Mark.