How to reinstall PIL on mac OS X Snow Leopard

I have been for hours on this. I needed to get jpeglib and PIL reinstalled.

I installed jpeg lib from http://www.ijg.org/, please tell me if that's right.

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.

And then installation, do i do apt-get install py-pil only? I see different instructions here and here. Which way should I go? I also can't figure out, does sudo python setup.py install reinstall python 2.6, or it just installs whichever thing i am in the directory of? However:

[petarpetrov@/Library/Python/2.6/site-packages/PIL]$ sudo python setup.py install python: can't open file 'setup.py': [Errno 2] No such file or directory

thanks in advance

Answers


Don't muck about with fink. That uses a completely separate install of Python and all its dependencies. It really won't help with your actual problem.

Secondly, you're trying to run things from inside site-packages - this is wrong. Go back to the directory where you downloaded PIL (or download it again, if you don't still have it) and run sudo python setup.py install.

And no, it won't reinstall Python - it uses python to run the setup of the directory you're in.


Need Your Help

Displaying ± symbol in Java

java string special-characters

How to get the character ± in a string?

Building an Observable Repository with Rx

c# repository observablecollection system.reactive reactive-programming

I'm working in the common scenario whereby I'd like to access a subset of a repository and not worry about having to keep it updated e.g. 'get all orders whose price is greater than 10'. I have