this is the first time i tried and added an
ImageField to my
model. then i did
makemigrations./manage.py makemigrations
but it said that i should do:
(the django documentation says it's a required library too...)
doing so, it gave me some errors:
~/W/d/mysite> pip install pillow
Downloading/unpacking pillow
Downloading Pillow-2.7.0.tar.gz (7.4MB): 7.4MB downloaded
Running setup.py (path:/tmp/pip_build_aseds/pillow/setup.py) egg_info
for package pillow
Single threaded build, not installing mp_compile: 1 processes
Installing collected packages: pillow
Running setup.py install for pillow
Single threaded build, not installing mp_compile: 1 processes
building 'PIL._imaging' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwr
apv -O2 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip_build_aseds/pillow/l
ibImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7
-I/usr/include/x86_64-linux-gnu -c _imaging.c -o build/temp.linux-x86_6
4-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
Complete output from command /usr/bin/python -c "import setuptools,
tokenize;__file__='/tmp/pip_build_aseds/pillow/setup.py';exec(compile(
getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'),
__file__, 'exec'))" install --record /tmp/pip-GeeYvn-record/install-re
cord.txt --single-version-externally-managed --compile:
Single threaded build, not installing mp_compile: 1 processes
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTransform.py -> build/lib.linux-x86_64-2.7/PIL
:
:
:
i thought probably not all of it is important...
:
:
:
creating build/temp.linux-x86_64-2.7/libImaging
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv
-O2 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip_build_aseds/pillow/libIm
aging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/u
sr/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
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/
pip_build_aseds/pillow/setup.py';exec(compile(getattr(tokenize, 'open',
open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" inst
all --record /tmp/pip-GeeYvn-record/install-record.txt --single-version
-externally-managed --compile failed with error code 1 in /tmp/pip_buil
d_aseds/pillow
Storing debug log for failure in /home/aseds/.pip/pip.log