Change From the comment on my @cgohlke answer, this will change in PIL1.2 :
support for importing from the standard namespace [has been removed]; PIL now lives only in the PIL namespace
I think Django's comment is pretty clear:
PIL can be installed as one package, and you get access to the modules inside it:
from PIL import ImageFile as PILImageFile
or each module can be installed separately:
import ImageFile as PILImageFile
So, PIL is installed, it just breaks down into its component modules.
This is also a problem in The problem of installing PIL using virtualenv or buildout , and @Ignacio mentions in a comment that the PIL Tutorial actually expects it to be installed this way, the first piece of code will start:
>>> import Image
not from PIL import Image .
I agree that this is confusing behavior, but I think it is a relatively large package, so they might think that it does not need to deal with an additional level of depth.
This is apparently a problem in Python - the package installed with easy_install was not detected (PIL 1.1.7) , although it turned out that only the last responder understood, other people do not know what is happening.
source share