title: Why do my Python PIL imports not working?
body: <p>When I am working with the PIL, I have to import a tons of PIL modules. I was experimenting with three ways to do this, but only the last one works despite all is being logical to me:</p>
  
  <p>Importing the complete PIL and calling it's modules in the code: NOPE</p>
  
  <pre><code>&gt;&gt;&gt; import PIL
  &gt;&gt;&gt; image = PIL.Image.new('1', (100,100), 0) 
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: 'module' object has no attribute 'Image'
  </code></pre>
  
  <p>Importing everything from PIL: NOPE</p>
  
  <pre><code>&gt;&gt;&gt; from PIL import *
  &gt;&gt;&gt; image = Image.new('1', (100,100), 0)
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  NameError: name 'Image' is not defined 
  </code></pre>
  
  <p>importing some modules from PIL: OK</p>
  
  <pre><code>&gt;&gt;&gt; from PIL import Image
  &gt;&gt;&gt; image = Image.new('1', (100,100), 0)
  &gt;&gt;&gt; image
  &lt;PIL.Image.Image image mode=1 size=100x100 at 0xB6C10F30&gt;
  &gt;&gt;&gt; # works...
  </code></pre>
  
  <p>What did I not get here?</p>