ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vRZyfL/evdev/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vRZyfL/evdev/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-6YnO7_/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python2.7/evdev cwd: /tmp/pip-install-vRZyfL/evdev/ Complete output (29 lines): running install running build running build_py creating build creating build/lib.linux-armv7l-2.7 creating build/lib.linux-armv7l-2.7/evdev copying evdev/ecodes.py -> build/lib.linux-armv7l-2.7/evdev copying evdev/uinput.py -> build/lib.linux-armv7l-2.7/evdev copying evdev/util.py -> build/lib.linux-armv7l-2.7/evdev copying evdev/evtest.py -> build/lib.linux-armv7l-2.7/evdev copying evdev/eventio_async.py -> build/lib.linux-armv7l-2.7/evdev copying evdev/device.py -> build/lib.linux-armv7l-2.7/evdev copying evdev/ff.py -> build/lib.linux-armv7l-2.7/evdev copying evdev/genecodes.py -> build/lib.linux-armv7l-2.7/evdev copying evdev/eventio.py -> build/lib.linux-armv7l-2.7/evdev copying evdev/events.py -> build/lib.linux-armv7l-2.7/evdev copying evdev/__init__.py -> build/lib.linux-armv7l-2.7/evdev running build_ext running build_ecodes writing ecodes.c (using /usr/include/linux/input.h /usr/include/linux/input-event-codes.h /usr/include/linux/uinput.h) building 'evdev._input' extension creating build/temp.linux-armv7l-2.7 creating build/temp.linux-armv7l-2.7/evdev arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-InigCj/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c evdev/input.c -o build/temp.linux-armv7l-2.7/evdev/input.o -std=c99 -Wno-error=declaration-after-statement evdev/input.c:10:10: fatal error: Python.h: No such file or directory #include ^~~~~~~~~~ compilation terminated. error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vRZyfL/evdev/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vRZyfL/evdev/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-6YnO7_/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python2.7/evdev Check the logs for full command output.