Help UPS PLCO Install

installing GPIO python via pip and i get this ideas?

Command /usr/bin/python -c “import setuptools, tokenize;file=‘/tmp/pip-build-wCDDOG/RPi.GPIO/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-eOuJLh-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-wCDDOG/RPi.GPIO
Storing debug log for failure in /root/.pip/pip.log

Tried Following this

now i get
source/py_gpio.c:23:20: fatal error: Python.h: No such file or directory

#include “Python.h”

                ^

compilation terminated.

error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1


Cleaning up…
Command /usr/bin/python -c “import setuptools, tokenize;file=‘/tmp/pip-build-CYtOPY/RPi.GPIO/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-_RGR_O-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-CYtOPY/RPi.GPIO
Storing debug log for failure in /root/.pip/pip.log
osmc@osmc:~$

Edit 2:
got it by then installing sudo apt-get install python-dev

Will Write this up proper when im done… google is my friend haha :slight_smile: