python - Pillow installation error: command 'gcc' failed with exit status 1 -
i trying setup django variant (wagtail) have problems installing required pillow.
background: running python 2.6.6, in virtualenv, using mac terminal have shell access domain hosted on small orange, no root access, cannot use sudo commands
when run
pip install pillow i below error:
downloading/unpacking pillow downloading pillow-2.3.0.zip (2.4mb): 2.4mb downloaded running setup.py (path:/home/clarayee/.env/env/build/pillow/setup.py) egg_info package pillow installing collected packages: pillow running setup.py install pillow building 'pil._imaging' extension gcc -pthread -fno-strict-aliasing -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -d_gnu_source -fpic -fwrapv -dndebug -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -d_gnu_source -fpic -fwrapv -fpic -dhave_libjpeg -dhave_libz -dhave_libtiff -i/usr/include/freetype2 -i/home/clarayee/.env/env/build/pillow/libimaging -i/home/clarayee/.env/env/include -i/usr/local/include -i/usr/include -i/usr/include/python2.6 -c _imaging.c -o build/temp.linux-x86_64-2.6/_imaging.o unable execute gcc: permission denied error: command 'gcc' failed exit status 1 complete output command /home/clarayee/.env/env/bin/python -c "import setuptools, tokenize;__file__='/home/clarayee/.env/env/build/pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ncrvqa-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/clarayee/.env/env/include/site/python2.6: running install running build running build_py creating build creating build/lib.linux-x86_64-2.6 creating build/lib.linux-x86_64-2.6/pil copying pil/micimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/tifftags.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagewin.py -> build/lib.linux-x86_64-2.6/pil copying pil/icnsimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/bmpimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/dcximageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/mcidasimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagefileio.py -> build/lib.linux-x86_64-2.6/pil copying pil/sunimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagepalette.py -> build/lib.linux-x86_64-2.6/pil copying pil/argimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/image.py -> build/lib.linux-x86_64-2.6/pil copying pil/pngimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/bufrstubimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/palmimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/imimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagepath.py -> build/lib.linux-x86_64-2.6/pil copying pil/xpmimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/epsimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagefile.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagemath.py -> build/lib.linux-x86_64-2.6/pil copying pil/ppmimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/icoimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/pcffontfile.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagetk.py -> build/lib.linux-x86_64-2.6/pil copying pil/gdimagefile.py -> build/lib.linux-x86_64-2.6/pil copying pil/__init__.py -> build/lib.linux-x86_64-2.6/pil copying pil/_util.py -> build/lib.linux-x86_64-2.6/pil copying pil/mspimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/fliimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/imageenhance.py -> build/lib.linux-x86_64-2.6/pil copying pil/tiffimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/tario.py -> build/lib.linux-x86_64-2.6/pil copying pil/jpegimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagecolor.py -> build/lib.linux-x86_64-2.6/pil copying pil/hdf5stubimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/bdffontfile.py -> build/lib.linux-x86_64-2.6/pil copying pil/imtimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/pixarimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/jpegpresets.py -> build/lib.linux-x86_64-2.6/pil copying pil/xvthumbimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/gimpgradientfile.py -> build/lib.linux-x86_64-2.6/pil copying pil/imageqt.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagecms.py -> build/lib.linux-x86_64-2.6/pil copying pil/webpimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/curimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/fpximageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagemode.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagechops.py -> build/lib.linux-x86_64-2.6/pil copying pil/containerio.py -> build/lib.linux-x86_64-2.6/pil copying pil/gifimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/walimagefile.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagedraw2.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagefont.py -> build/lib.linux-x86_64-2.6/pil copying pil/iptcimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/imageops.py -> build/lib.linux-x86_64-2.6/pil copying pil/sgiimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/psdimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/mpegimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/gbrimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/pcdimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/olefileio.py -> build/lib.linux-x86_64-2.6/pil copying pil/xbmimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/psdraw.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagetransform.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagedraw.py -> build/lib.linux-x86_64-2.6/pil copying pil/pdfimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/fontfile.py -> build/lib.linux-x86_64-2.6/pil copying pil/tgaimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/spiderimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/wmfimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/exiftags.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagefilter.py -> build/lib.linux-x86_64-2.6/pil copying pil/pcximageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/imageshow.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagesequence.py -> build/lib.linux-x86_64-2.6/pil copying pil/gribstubimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/gimppalettefile.py -> build/lib.linux-x86_64-2.6/pil copying pil/palettefile.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagestat.py -> build/lib.linux-x86_64-2.6/pil copying pil/_binary.py -> build/lib.linux-x86_64-2.6/pil copying pil/fitsstubimageplugin.py -> build/lib.linux-x86_64-2.6/pil copying pil/tests.py -> build/lib.linux-x86_64-2.6/pil copying pil/imagegrab.py -> build/lib.linux-x86_64-2.6/pil running egg_info writing dependency_links pillow.egg-info/dependency_links.txt writing pillow.egg-info/pkg-info writing top-level names pillow.egg-info/top_level.txt warning: manifest_maker: standard file '-c' not found reading manifest file 'pillow.egg-info/sources.txt' reading manifest template 'manifest.in' writing manifest file 'pillow.egg-info/sources.txt' running build_ext building 'pil._imaging' extension creating build/temp.linux-x86_64-2.6/libimaging gcc -pthread -fno-strict-aliasing -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -d_gnu_source -fpic -fwrapv -dndebug -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -d_gnu_source -fpic -fwrapv -fpic -dhave_libjpeg -dhave_libz -dhave_libtiff -i/usr/include/freetype2 -i/home/clarayee/.env/env/build/pillow/libimaging -i/home/clarayee/.env/env/include -i/usr/local/include -i/usr/include -i/usr/include/python2.6 -c _imaging.c -o build/temp.linux-x86_64-2.6/_imaging.o unable execute gcc: permission denied error: command 'gcc' failed exit status 1 ---------------------------------------- cleaning up... command /home/clarayee/.env/env/bin/python -c "import setuptools, tokenize;__file__='/home/clarayee/.env/env/build/pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ncrvqa-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/clarayee/.env/env/include/site/python2.6 failed error code 1 in /home/clarayee/.env/env/build/pillow storing debug log failure in /home/clarayee/.pip/pip.log same issue when run easy_install. appreciate help!
make sure have gcc , python-dev installed
sudo apt-get install gcc python-dev
Comments
Post a Comment