Problem with Platformio on Raspberry Pi 1 Model B

Could you try apt-get install python-dev?

Similar issue PIO remote step by step for dummies?