I have also tried
from PIL import Image
but it gives me ImportError: No module named PIL.
I have installed PIL successfully using
pip install pil
and I've also installed xcode command line tools. Nothing seem to work.
Mac OS X 10.9
python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python
python is /usr/bin/python
python is /usr/local/bin/python
This question is related to
The PIL distribution is mispackaged for egg installation.
Install Pillow instead, the friendly PIL fork.