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,开发者_C百科 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
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.
精彩评论