Ensure pip is at the correct version i.e. pip==9.0.3. Install specific versions of the libraries compatible with Python 2.7. Then install pillow as:
python -m pip install pillow packtools lxml --use-deprecated=legacy-resolver