title: How to use PIL with PyPy?
body: <p>I searched a little bit but I couldn't find a tuto to use PIL with PyPy. According to PyPy's blog, PIL is supported.</p>
  
  <ul>
  <li>I installed PIL with pip in my PYTHONPATH.</li>
  <li>After the download, pip make 2 .pyd files: _imaging.pyd and _imagingmath.pyd.</li>
  <li>After the install, I copied %PYTHONPATH%/lib/site-packages/PIL to my PyPy site-packages directory.</li>
  <li>When I run my script (which uses PIL), it says it can't import the _imaging C module.</li>
  </ul>
  
  <p>How should I do it ?</p>
  
  <p>edit:
  I run this on Windows 7 x64 (python 2.7.1 32bits)</p>
  
  <p>here is the traceback (pypy 1.4.1 windows binary):</p>
  
  <pre><code>Traceback (most recent call last):
    File "app_main.py", line 53, in run_toplevel
    File "tools\python\gen_images.py", line 52, in &lt;module&gt;
      main()
    File "tools\python\gen_images.py", line 44, in main
      image = Image.open(file)
    File "d:\pypy\site-packages\PIL\Image.py", line 1965, in open
      return factory(fp, filename)
    File "d:\pypy\site-packages\PIL\ImageFile.py", line 91, in __init__
      self._open()
    File "d:\pypy\site-packages\PIL\GifImagePlugin.py", line 97, in _open
      self.seek(0) # get ready to read first frame
    File "d:\pypy\site-packages\PIL\GifImagePlugin.py", line 152, in seek
      self.dispose = Image.core.fill("P", self.size,
    File "d:\pypy\site-packages\PIL\Image.py", line 37, in __getattr__
      raise ImportError("The _imaging C module is not installed")
  ImportError: The _imaging C module is not installed
  </code></pre>