title: How to reinstall PIL on mac OS X Snow Leopard
body: <p>I have been for hours on this. I needed to get jpeglib and PIL reinstalled. </p>
  
  <p>I installed jpeg lib from <a href="http://www.ijg.org/" rel="nofollow">http://www.ijg.org/</a>, please tell me if that's right. </p>
  
  <p>I still have to reinstall PIL. I installed Fink, for apt-get, but still am not clear how to uninstall completely PIL before installing it. </p>
  
  <p>And then installation, do i do <code>apt-get install py-pil</code> only? I see different instructions <a href="http://colbypalmer.com/index.php?/colbyworld/blogEntry/install_libjpeg_and_pil_on_os_x_leopard/" rel="nofollow">here</a> and <a href="http://colbypalmer.com/index.php?/colbyworld/blogEntry/install_libjpeg_and_pil_on_os_x_leopard/" rel="nofollow">here</a>. Which way should I go? I also can't figure out, does <code>sudo python setup.py install</code> reinstall python 2.6, or it just installs whichever thing i am in the directory of? However:</p>
  
  <blockquote>
    <p>[petarpetrov@/Library/Python/2.6/site-packages/PIL]$ sudo python setup.py install<br>
    python: can't open file 'setup.py': [Errno 2] No such file or directory</p>
  </blockquote>
  
  <p>thanks in advance</p>