I use the Ubuntu system 16.04.1 (server).
When you enter pip install pillow , the installation is in progress, but at the end it gives an error:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2MM32Z/pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-MVcbrz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-2MM32Z/pillow/