import sys
from PIL import Image
........
MY_IMAGE = Image.open(sys.argv[1]).convert('1')
Should I first specify directory? I also tried:
import Image
img = Image.open("/directory/image.jpg")
img.load()
It does not help, I still get ImportError: No module named 'PIL'