[Tutor] Can't install latest PIL
eryksun
eryksun at gmail.com
Fri May 17 04:51:33 CEST 2013
On Thu, May 16, 2013 at 6:12 PM, Jim Mooney <cybervigilante at gmail.com> wrote:
> I tried "import image from pil" and got the following error:
> SyntaxError invalid syntax (python_init.py, line 1)
If you see a syntax error, that means your code could not be compiled.
Python's parser doesn't grok "import image from pil". In natural
language we have the freedom to swap the order of clauses, but
programming languages are generally more rigid. The correct order is
"from pil import image" -- but actually it has to be "from PIL import
Image".
More information about the Tutor
mailing list