title: How do I install Python Imaging Library on Mac OS X?
body: <p>I'm an extremely amateur programmer; I've done some recreational algorithmics programming, but I honestly have no idea how libraries and programming languages really fit together. I'm supposed to work on a project that requires some image processing, so I've been trying to install PIL for a while, but I haven't been able to.</p>
  
  <p>I went to <a href="http://www.pythonware.com/products/pil/" rel="noreferrer">http://www.pythonware.com/products/pil/</a> and downloaded "Python Imaging Library 1.1.6 Source Kit (all platforms) (440k TAR GZ) (December 3, 2006)". Then I opened the folder in my command prompt and ran </p>
  
  <pre><code>$ python setup.py build_ext -i .
  </code></pre>
  
  <p>This was the output I got:</p>
  
  <pre><code>running build_ext
  
  --- using frameworks at /System/Library/Frameworks
  
  building '_imaging' extension
  
  gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -DHAVE_LIBZ -IlibImaging -I/opt/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include -I/usr/local/include -I/usr/include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _imaging.c -o build/temp.macosx-10.5-i386-2.5/_imaging.o
  
  unable to execute gcc: No such file or directory
  
  error: command 'gcc' failed with exit status 1
  </code></pre>
  
  <p>"import Image" produced an error when I tried it.</p>
  
  <p>Do you guys have any idea what's going on? I'm using a MacBook Pro with a Core 2 Duo.</p>
  
  <p>And I'm honestly sorry if this is ridiculously stupid.</p>