try "pip install pillow". Pillow is a fork to make pil easier to be pip installed (so mainly a better setup.py).
http://pypi.python.org/pypi/Pillow On Sat, Mar 3, 2012 at 11:12 PM, Jacob Finkelman <eh2...@wayne.edu> wrote: > Hi, > > I have been lurking on this list for quite a while. I always feel > smarter for having tried to follow the conversations on this list. I'd > especially like to thank the people working on getting Cython working. > The progress on that project has been fascinating to read about. > > I have been trying to get PIL to work on my Windows 7 32 bit laptop. > > I install Pypy. Currently 1.8 > Install distribute and PIP. > Install "Microsoft Visual C++ 2008 Express Edition" > run "cmd.exe" > cd c:\pypy-1.8\bin > pip install pil > > and I get a long error the end of which is """ > > tails. > C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(322) : > see declaration of 'write' > C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox > /M > D /W3 /GS- /DNDEBUG -IlibImaging -IC:\pypy-1.8\include /Tcmap.c > /Fobuild\temp.wi > n32-2.7\Release\map.obj > map.c > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : > warnin > g C4114: same type qualifier used more than once > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : error > C2632: 'char' followed by 'char' is illegal > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : error > C2059: syntax error : ',' > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(77) : error > C2632: 'short' followed by 'short' is illegal > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(77) : error > C2059: syntax error : ',' > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : > warnin > g C4114: same type qualifier used more than once > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : error > C2632: 'char' followed by 'char' is illegal > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : error > C2059: syntax error : ',' > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : > warnin > g C4114: same type qualifier used more than once > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : error > C2632: 'short' followed by 'short' is illegal > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : error > C2059: syntax error : ',' > error: command 'C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe' > failed with exit status 2 > Complete output from command C:\pypy-1.8\pypy.exe -c "import > setuptools;__fi > le__='c:\\pypy-1.8\\bin\\build\\pil\\setup.py';exec(compile(open(__file__).read( > ).replace('\r\n', '\n'), __file__, 'exec'))" install > --single-version-externally > -managed --record > c:\users\jlap\appdata\local\temp\pip-y_8euy-record\install-rec > ord.txt: > WARNING: '' not a valid package name; please use only.-separated package > nam > es in setup.py > > running install > > running build > > running build_py > > copying PIL\ArgImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\BdfFontFile.py -> build\lib.win32-2.7 > > copying PIL\BmpImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\BufrStubImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\ContainerIO.py -> build\lib.win32-2.7 > > copying PIL\CurImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\DcxImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\EpsImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\ExifTags.py -> build\lib.win32-2.7 > > copying PIL\FitsStubImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\FliImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\FontFile.py -> build\lib.win32-2.7 > > copying PIL\FpxImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\GbrImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\GdImageFile.py -> build\lib.win32-2.7 > > copying PIL\GifImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\GimpGradientFile.py -> build\lib.win32-2.7 > > copying PIL\GimpPaletteFile.py -> build\lib.win32-2.7 > > copying PIL\GribStubImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\Hdf5StubImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\IcnsImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\IcoImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\Image.py -> build\lib.win32-2.7 > > copying PIL\ImageChops.py -> build\lib.win32-2.7 > > copying PIL\ImageCms.py -> build\lib.win32-2.7 > > copying PIL\ImageColor.py -> build\lib.win32-2.7 > > copying PIL\ImageDraw.py -> build\lib.win32-2.7 > > copying PIL\ImageDraw2.py -> build\lib.win32-2.7 > > copying PIL\ImageEnhance.py -> build\lib.win32-2.7 > > copying PIL\ImageFile.py -> build\lib.win32-2.7 > > copying PIL\ImageFileIO.py -> build\lib.win32-2.7 > > copying PIL\ImageFilter.py -> build\lib.win32-2.7 > > copying PIL\ImageFont.py -> build\lib.win32-2.7 > > copying PIL\ImageGL.py -> build\lib.win32-2.7 > > copying PIL\ImageGrab.py -> build\lib.win32-2.7 > > copying PIL\ImageMath.py -> build\lib.win32-2.7 > > copying PIL\ImageMode.py -> build\lib.win32-2.7 > > copying PIL\ImageOps.py -> build\lib.win32-2.7 > > copying PIL\ImagePalette.py -> build\lib.win32-2.7 > > copying PIL\ImagePath.py -> build\lib.win32-2.7 > > copying PIL\ImageQt.py -> build\lib.win32-2.7 > > copying PIL\ImageSequence.py -> build\lib.win32-2.7 > > copying PIL\ImageShow.py -> build\lib.win32-2.7 > > copying PIL\ImageStat.py -> build\lib.win32-2.7 > > copying PIL\ImageTk.py -> build\lib.win32-2.7 > > copying PIL\ImageTransform.py -> build\lib.win32-2.7 > > copying PIL\ImageWin.py -> build\lib.win32-2.7 > > copying PIL\ImImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\ImtImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\IptcImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\JpegImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\McIdasImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\MicImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\MpegImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\MspImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\OleFileIO.py -> build\lib.win32-2.7 > > copying PIL\PaletteFile.py -> build\lib.win32-2.7 > > copying PIL\PalmImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\PcdImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\PcfFontFile.py -> build\lib.win32-2.7 > > copying PIL\PcxImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\PdfImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\PixarImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\PngImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\PpmImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\PsdImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\PSDraw.py -> build\lib.win32-2.7 > > copying PIL\SgiImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\SpiderImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\SunImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\TarIO.py -> build\lib.win32-2.7 > > copying PIL\TgaImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\TiffImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\TiffTags.py -> build\lib.win32-2.7 > > copying PIL\WalImageFile.py -> build\lib.win32-2.7 > > copying PIL\WmfImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\XbmImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\XpmImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\XVThumbImagePlugin.py -> build\lib.win32-2.7 > > copying PIL\__init__.py -> build\lib.win32-2.7 > > running build_ext > > building '_imaging' extension > > C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD > /W > 3 /GS- /DNDEBUG -IlibImaging -IC:\pypy-1.8\include /Tc_imaging.c > /Fobuild\temp.w > in32-2.7\Release\_imaging.obj > > _imaging.c > > _imaging.c(1230) : warning C4133: 'function' : incompatible types - from > 'PyStri > ngObject *' to 'PyObject *' > > _imaging.c(1384) : warning C4996: 'strcpy': This function or variable may be > uns > afe. Consider using strcpy_s instead. To disable deprecation, use > _CRT_SECURE_NO > _WARNINGS. See online help for details. > > _imaging.c(1412) : warning C4996: 'strcpy': This function or variable may be > uns > afe. Consider using strcpy_s instead. To disable deprecation, use > _CRT_SECURE_NO > _WARNINGS. See online help for details. > > _imaging.c(1550) : warning C4996: 'strcpy': This function or variable may be > uns > afe. Consider using strcpy_s instead. To disable deprecation, use > _CRT_SECURE_NO > _WARNINGS. See online help for details. > > C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD > /W > 3 /GS- /DNDEBUG -IlibImaging -IC:\pypy-1.8\include /Tcdecode.c > /Fobuild\temp.win > 32-2.7\Release\decode.obj > > decode.c > > C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD > /W > 3 /GS- /DNDEBUG -IlibImaging -IC:\pypy-1.8\include /Tcencode.c > /Fobuild\temp.win > 32-2.7\Release\encode.obj > > encode.c > > encode.c(161) : warning C4996: 'write': The POSIX name for this item is > deprecat > ed. Instead, use the ISO C++ conformant name: _write. See online help for > detail > s. > > C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(322) : see > declaration of 'write' > > C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD > /W > 3 /GS- /DNDEBUG -IlibImaging -IC:\pypy-1.8\include /Tcmap.c > /Fobuild\temp.win32- > 2.7\Release\map.obj > > map.c > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : warning > C4 > 114: same type qualifier used more than once > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : error > C263 > 2: 'char' followed by 'char' is illegal > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(76) : error > C205 > 9: syntax error : ',' > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(77) : error > C263 > 2: 'short' followed by 'short' is illegal > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(77) : error > C205 > 9: syntax error : ',' > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : warning > C4 > 114: same type qualifier used more than once > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : error > C263 > 2: 'char' followed by 'char' is illegal > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(80) : error > C205 > 9: syntax error : ',' > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : warning > C4 > 114: same type qualifier used more than once > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : error > C263 > 2: 'short' followed by 'short' is illegal > > C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\basetsd.h(81) : error > C205 > 9: syntax error : ',' > > error: command 'C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe' > fail > ed with exit status 2 > > ---------------------------------------- > Command C:\pypy-1.8\pypy.exe -c "import > setuptools;__file__='c:\\pypy-1.8\\bin\\ > build\\pil\\setup.py';exec(compile(open(__file__).read().replace('\r\n', > '\n'), > __file__, 'exec'))" install --single-version-externally-managed --record > c:\user > s\jlap\appdata\local\temp\pip-y_8euy-record\install-record.txt failed with > error > code 1 > Storing complete log in C:\Users\Jlap\AppData\Roaming\pip\pip.log > > c:\pypy-1.8\bin> > """ > > What should I try next? > What am I doing wrong? > > Jacob > _______________________________________________ > pypy-dev mailing list > pypy-dev@python.org > http://mail.python.org/mailman/listinfo/pypy-dev -- Leonardo Santagada _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev