It turned out that, since I installed everything via VSCode the python version used is located in the PlatformIO folder under '~/.platformio/penv/' and the distutils are available in the setuptools pkg.
Therfore I installed it there with
source .platformio/penv/bin/activate
pip install setuptools
now it works