Reputation: 25
I'm working with a django project and now I want to add an image field, django asked me to install Pillow with the command "pip install Pillow
",
thie problem is when I run this command, and this one also "sudo install Pillow
" I get the message:
gcc: error: build/temp.linux-x86_64-3.2/libImaging/BoxBlur.o: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-otvko5/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5430vf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-otvko5/Pillow
I have tried all the ways that I found on the internet as well as the other ways to install Pillow such as easy_install, but each time I get a new problem.
Upvotes: 2
Views: 118
Reputation: 3018
Try to run the below commands in your linux
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install libevent-dev
Upvotes: 2