I used easy_install to install PIL in Python 2.7.2 on my windows box. However I got this error with the 64-bit version of Python :
C:\dev\Python27\Scripts>easy_install pil
Searching for pil
Reading http://pypi.python.org/simple/pil/
Reading http://www.pythonware.com/products/pil
Reading http://effbot.org/zone/pil-changes-115.htm
Reading http://effbot.org/downloads/#Imaging
Best match: PIL 1.1.7
Downloading http://effbot.org/media/downloads/PIL-1.1.7.tar.gz
Processing PIL-1.1.7.tar.gz
Running PIL-1.1.7\setup.py -q bdist_egg --dist-dir c:\users\sgeorge\appdata\local\temp\easy_install-r4zhu9\PIL-1.1.7\egg-dist-tmp-b3pkv1
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
error: Setup script exited with error: Unable to find vcvarsall.bat
I found out here that you need the free Visual Studio 2008 Express Edition (ISO file : 749MB). This can be extracted using 7-zip. I found out the hard way that this error does NOT go away if you install Visual Studio 2010 (ISO file : 694MB). Now I have this new error:
error: Setup script exited with error: command 'cl.exe' failed: No such file or directory
The above error went away when I closed and opened the cmd window. However I got this error message after that:
File "C:\dev\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall
raise ValueError(str(list(result.keys())))
I gave up and installed 32-bit version of Python and this worked fine
C:\dev\Python27\Scripts>easy_install pil
Searching for pil
Reading http://pypi.python.org/simple/pil/
Reading http://www.pythonware.com/products/pil
Reading http://effbot.org/zone/pil-changes-115.htm
Reading http://effbot.org/downloads/#Imaging
Best match: PIL 1.1.7
Downloading http://effbot.org/media/downloads/PIL-1.1.7.tar.gz
Processing PIL-1.1.7.tar.gz
Running PIL-1.1.7\setup.py -q bdist_egg --dist-dir c:\users\sgeorge\appdata\local\temp\easy_install-r4zhu9\PIL-1.1.7\egg-dist-tmp-b3pkv1
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
error: Setup script exited with error: Unable to find vcvarsall.bat
I found out here that you need the free Visual Studio 2008 Express Edition (ISO file : 749MB). This can be extracted using 7-zip. I found out the hard way that this error does NOT go away if you install Visual Studio 2010 (ISO file : 694MB). Now I have this new error:
error: Setup script exited with error: command 'cl.exe' failed: No such file or directory
The above error went away when I closed and opened the cmd window. However I got this error message after that:
File "C:\dev\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall
raise ValueError(str(list(result.keys())))
I gave up and installed 32-bit version of Python and this worked fine