[Image-SIG] Overriding 1.1.6 with 1.1.7 in local dir

Fredrik Lundh fredrik at pythonware.com
Wed May 27 10:44:51 CEST 2009

On Tue, May 26, 2009 at 11:53 PM, Seph Soliman <ss at konstellation.dk> wrote:
> Would it be possible to compile and run a local version of PIL 1.1.7 with
> Django even if 1.1.6 is installed in site-packages in the python
> installation? We're running Django through Apache with mod_python currently.

Yes, you can install it locally and then make sure the installation
directory comes before site-packages in sys.path (e.g. by adding it to
PYTHONPATH, or by manipulating sys.path in settings.py).

If you install it in DIR, you may want to add both DIR and DIR/PIL to
the path to make sure that both "import Image" and "from PIL import
Image" works properly (if you always use the latter form, you only
need DIR in the path).


More information about the Image-SIG mailing list