Library not loaded: '/System/Library/Frameworks/Python.framework/Versions/2.7/Python'

Current version of python is python3

Tracked in Missing python 2.7 installation on MacOS Monterey 12.6 when trying to start debug session · Issue #292 · platformio/platform-atmelavr · GitHub.