pinax / pinax-project-teams

a starter project that has account management, profiles, teams and basic collaborative content.
20 stars 6 forks source link

_imaging.c:76:20: fatal error: Python.h: #4

Open kaavla opened 9 years ago

kaavla commented 9 years ago

When i try to pip install from requirements.txt, i get the following error:

--SNIP-- _U/Pillow/libImaging -I/home/kaavla/temp/ppt/include -I/usr/local/include -I/usr/include -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu -c _imaging.c -o build/temp.linux-x86_64-2.7/_imaging.o

_imaging.c:76:20: fatal error: Python.h: No such file or directory

 #include "Python.h"

                    ^

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/home/kaavla/temp/ppt/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-wRve_U/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-f707y_-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/kaavla/temp/ppt/include/site/python2.7" failed with error code 1 in /tmp/pip-build-wRve_U/Pillow

--SNIP--