PlatformIO Can not find working Python 3.6+ on Debian 9


I’m trying to install PlatformIO in VSCode 1.63.2 on Debian 9 (stretch).
However it keeps saying;

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

Even after building/installing latest python3.9 and providing full path to it’s /usr/local/bin/python3.9 shared library.

lex@msi:~$ python3.9
Python 3.9.4 (default, Jan 10 2022, 19:54:02)
[GCC 6.3.0 20170516] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import sys

I have searched this forum but did not found a solution yet.
Any suggestions?

Ok, I solved it.

I have multiple python3.x version installed.
Changing the symlink /usr/bin/python3 to point to 3.6+ worked!

1 Like